replaced django url tags with get_absolute_url 2011
authorParth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:57:37 +0530
branch2011
changeset 428 d7fefdb4b947
parent 427 ee98f2b50ffa
child 429 cde70fd3073c
replaced django url tags with get_absolute_url
project/templates/_menu.html
project/templates/_menu_user.html
--- a/project/templates/_menu.html	Fri Sep 30 20:39:50 2011 +0530
+++ b/project/templates/_menu.html	Sat Oct 01 03:57:37 2011 +0530
@@ -2,12 +2,12 @@
   <ul>
     <li><a href="/{{ params.scope }}/">Home</a></li>
     <!-- <li>
-      <a href="{% url scipycon_download_slides params.scope %}">
+      <a href="/{{ params.scope }}/download_slides/">
         Download Slides <font color="red">(New)</font>
       </a>
     </li>
     <li>
-      <a href="{% url scipycon_download_videos params.scope %}">
+      <a href="/{{ params.scope }}/download_videos/">
         Download Videos <font color="red">(New)</font>
       </a>
     </li> -->
@@ -88,7 +88,7 @@
           <a href="/{{ params.scope }}/about/food/">Food</a>
         </li> -->
         <li><a href="/{{ params.scope }}/about/venue/">The Venue</a></li>
-        <!-- <li><a href="{% url scipycon_city params.scope %}">Host City - Mumbai</a></li> -->
+        <!-- <li><a href="/{{ params.scope }}/about/city/">Host City - Mumbai</a></li> -->
         <li>
           <a href="/{{ params.scope }}/about/reaching/">Reaching the venue</a>
         </li>
@@ -105,3 +105,6 @@
     {% endif %}
   </ul>
 </div>
+{% endif %}
+  </ul>
+</div>
--- a/project/templates/_menu_user.html	Fri Sep 30 20:39:50 2011 +0530
+++ b/project/templates/_menu_user.html	Sat Oct 01 03:57:37 2011 +0530
@@ -6,14 +6,14 @@
             <strong>{{ user.username }}</strong>
         {% endif %} |
 
-        <a href="{% url scipycon_account params.scope %}">My profile</a> |
+        <a href="/{{params.scope }}/account/">My profile</a> |
 
         {% if user.is_superuser %}
                 <a href="/admin/">Administer</a> |
         {% endif %}
 
-        <a href="{% url scipycon_logout params.scope %}">Logout</a>
+        <a href="/{{params.scope }}/logout/">Logout</a>
     {% else %}
-        <a href="{% url scipycon_login params.scope %}">Login</a>
+        <a href="/{{params.scope }}/login/">Login</a>
     {% endif %}
 </div>