diff --git a/OACPL/urls.py b/OACPL/urls.py index 666252b..bdb6df4 100644 --- a/OACPL/urls.py +++ b/OACPL/urls.py @@ -10,6 +10,7 @@ from django.views.static import serve import main.views import case_law.views import charter_members.views +import expert_witnesses.views import newsletters.views @@ -25,7 +26,9 @@ urlpatterns = [ url(r'^admin/logout', main.views.logout, name='logout'), url(r'^admin/', admin.site.urls, name='admin'), url(r'^attorney/(?P\d+)', charter_members.views.index, name='attorney'), - url(r'^caselaw/', case_law.views.browser, name='browser'), + url(r'^caselaw/', case_law.views.browser, name='caselaw'), + url(r'^experts/', expert_witnesses.views.browser, name='experts'), + url(r'^experts/(\d+)', expert_witnesses.views.viewer, name='expert'), url(r'^media/secure/(?P.*)$', protected_serve, {'document_root': os.path.join(settings.MEDIA_ROOT, 'secure')}, name='secure media'), url(r'^media/(?P.*)$', serve, {'document_root': settings.MEDIA_ROOT}, name='media'), url(r'^newsletter/subscribe', newsletters.views.subscribe, name='subscribe'), diff --git a/case_law/templates/browser.html b/case_law/templates/browser.html index 0828f7e..fe2af62 100644 --- a/case_law/templates/browser.html +++ b/case_law/templates/browser.html @@ -34,11 +34,11 @@ {% for item in urls %} - {% if request.user.is_staff %}