Parcourir la source

Fix the home page to comply with ljf improvements

(yes, that home page had been sitting for a long time on my laptop...)
Jocelyn Delalande il y a 8 ans
Parent
commit
72f2c70cad

+ 2 - 2
wifiwithme/apps/contribmap/templates/base.html

@@ -30,7 +30,7 @@
     <div class="container">
     <h1>
     {% block title %}
-      <a href="{% url 'display_map' %}">Réseau wifi expérimental</a>
+      <a href="{% url 'home' %}">Réseau wifi expérimental</a>
     {% endblock %}
     </h1>
     </div>
@@ -44,7 +44,7 @@
           <span class="sr-only">Toggle navigation</span>
           <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
         </button>
-        <a class="navbar-brand" href="{% url 'display_map' %}">
+        <a class="navbar-brand" href="{% url 'home' %}">
         Wifi {{ isp.NAME }}
         </a>
       </div>

+ 2 - 2
wifiwithme/apps/pages/templates/pages/home.html

@@ -7,8 +7,8 @@
   <header class="jumbotron">
     <div class="container">
     <p>
-L'association <a href="//www.faimaison.net">FAImaison</a> expérimente à
-grande échelle (Nantes et environs) la création d'un réseau sans-fil à
+L'association <a href="{{ isp.SITE }}">{{ isp.NAME }}</a> expérimente à
+grande échelle ({{ isp.ZONE }}) la création d'un réseau sans-fil à
 longue portée à des fins, entre autres, de <em>partage</em> et
 <em>fourniture</em> d'<strong>accès à internet</strong>.
     </p>

+ 4 - 1
wifiwithme/apps/pages/views.py

@@ -1,5 +1,8 @@
+from django.conf import settings
 from django.shortcuts import render
 
 
 def home(request):
-    return render(request, 'pages/home.html')
+    return render(request, 'pages/home.html', {
+        'isp':settings.ISP,
+    })