Commits

uniqx committed 89ab1ee

reenable expert listings new url: /experts

Comments (0)

Files changed (2)

freieit/templates/experts.html

     {% endcomment %}
   {% endfor %}
 
-  <nav>{% if page.has_previous %}<a href="/{{ page.previous_page_number }}">&lt;</a>{% endif %} Seite {{ page.number }}/{{ page.paginator.num_pages }} {% if page.has_next %}<a href="/{{ page.next_page_number }}">&gt;</a>{% endif %}</nav>
+  <nav>
+    {% if page.has_previous %}
+      <a href="{% url "freieit.views.experts.show" page.previous_page_number %}">&laquo;</a>
+    {% endif %}
+    Seite {{ page.number }}/{{ page.paginator.num_pages }}
+    {% if page.has_next %}
+      <a href="{% url "freieit.views.experts.show" page.next_page_number %}">&raquo;</a>
+    {% endif %}
+  </nav>
 
 </section>
 
   (r'^search/', include('haystack.urls')),
 
   #url(r'^', 'freieit.views.'),
-  #url(r'^$',                  'freieit.views.experts.show'),
-  #url(r'^(?P<page_num>\d+)?$',                'freieit.views.experts.show'),
-  url(r'^login$',             'freieit.views.login.show'),
-  url(r'^logout$',            'freieit.views.login.do_logout'),
-  url(r'^register$',          'freieit.views.register.show'),
-  url(r'^profile$',           'freieit.views.profile.show'),
-  url(r'^expert/(?P<expert>[\w_\-]+)$',          'freieit.views.expert.show'),
-  url(r'^map$',               'freieit.views.map.show'),
-  url(r'^map/rss.xml$',       'freieit.views.map.rss'),
+  #url(r'^$',                            'freieit.views.experts.show'),
+  url(r'^login$',                       'freieit.views.login.show'),
+  url(r'^logout$',                      'freieit.views.login.do_logout'),
+  url(r'^register$',                    'freieit.views.register.show'),
+  url(r'^profile$',                     'freieit.views.profile.show'),
+  url(r'^expert/(?P<expert>[\w_\-]+)$', 'freieit.views.expert.show'),
+  url(r'^experts/(?P<page_num>\d+)?$',  'freieit.views.experts.show'),
+  url(r'^map$',                         'freieit.views.map.show'),
+  url(r'^map/rss.xml$',                 'freieit.views.map.rss'),
   # FIXME merge next 2 regex
   #url(r'^tag/(?P<tag>\w+)',                   'freieit.views.tag.show'),
   url(r'^tag/(?P<tag>[\w_\-]+)/(?P<page_num>\d+)?', 'freieit.views.tag.show'),