Commits

Oben Sonne committed 32d4ca9 Merge

Merge

Comments (0)

Files changed (1)

diggie/templates/pages.html

 
 {% block content %}
 <div class="pages">
-<form method="GET" action="/pages">
+<form method="GET" action="{% url diggie.views.pages %}">
 <input type="hidden" name="sort" value="{{ sort }}" />
 <input type="hidden" name="dir" value="{{ dir }}" />
 <p class="filter"
   <th class="name">
   <span class="cell">
     {% if sort == 'name' and dir == 'up' %}
-    <a href="/pages?sort=name&dir=down&filter={{ filter|urlencode }}" title="Sort down by name">
+    <a href="{% url diggie.views.pages %}?sort=name&dir=down&filter={{ filter|urlencode }}" title="Sort down by name">
     {% else %}
-    <a href="/pages?sort=name&dir=up&filter={{ filter|urlencode }}" title="Sort up by name">
+    <a href="{% url diggie.views.pages %}?sort=name&dir=up&filter={{ filter|urlencode }}" title="Sort up by name">
     {% endif %}
     Name
     </a>
       {% if dir == 'up' %}&uarr;{% else %}&darr;{% endif%}
     {% endif %}
     {% if sort == 'score' and dir == 'down' %}
-    <a href="/pages?sort=score&dir=up&filter={{ filter|urlencode }}" title="Sort up by score">
+    <a href="{% url diggie.views.pages %}?sort=score&dir=up&filter={{ filter|urlencode }}" title="Sort up by score">
     {% else %}
-    <a href="/pages?sort=score&dir=down&filter={{ filter|urlencode }}" title="Sort down by score">
+    <a href="{% url diggie.views.pages %}?sort=score&dir=down&filter={{ filter|urlencode }}" title="Sort down by score">
     {% endif %}
     Score
     </a>
       {% if dir == 'up' %}&uarr;{% else %}&darr;{% endif%}
     {% endif %}
     {% if sort == 'mtime' and dir == 'down' %}
-    <a href="/pages?sort=mtime&dir=up&filter={{ filter|urlencode }}" title="Sort down by modification age">
+    <a href="{% url diggie.views.pages %}?sort=mtime&dir=up&filter={{ filter|urlencode }}" title="Sort down by modification age">
     {% else %}
-    <a href="/pages?sort=mtime&dir=down&filter={{ filter|urlencode }}" title="Sort up by modification age">
+    <a href="{% url diggie.views.pages %}?sort=mtime&dir=down&filter={{ filter|urlencode }}" title="Sort up by modification age">
     {% endif %}
     Changed before
     </a>