Commits

Andrey Sokolov committed 46d9d14

Fix links in menu

Comments (0)

Files changed (3)

source/apps/main/templates/layout/header.html

 <div class="page-header">
-    <a class="logo" href="/">
+    <a class="logo" href="https://www.djangoproject.com/">
         <img src="/static/main/img/hdr_logo.gif" alt="Logo"/>
     </a>
     <!-- Main menu -->

source/apps/main/templates/layout/menu.html

 <div class="main-menu">
     <ul>
         <li class="{% if current_page == 'home' %} selected{% endif %}"><a href="/">Home</a></li>
-        <li class="{% if current_page == 'menu1' %} selected{% endif %}"><a href="/menu1">Menu 1</a></li>
+        <li class="{% if current_page == 'menu1' %} selected{% endif %}"><a href="/menu1/">Menu 1</a></li>
         <li class="{% if current_page == 'menu2' %} selected{% endif %}"><a href="/menu2/">Menu 2</a></li>
     </ul>
 </div>

source/apps/main/urls.py

 
 urlpatterns = patterns('main.views',
     (r'^$', 'home_view'),
+    (r'^menu1/$', 'home_view'),
+    (r'^menu2/$', 'home_view'),
 )