From 9d7f174b39091144043a287e2ac309152f41bc7f Mon Sep 17 00:00:00 2001 From: artunit Date: Sat, 14 Mar 2009 04:43:13 +0000 Subject: [PATCH] git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@174 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/genshi_namespace.py | 4 ++++ conifer/syrup/urls.py | 1 + conifer/templates/browse_courses.xhtml | 8 ++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/conifer/genshi_namespace.py b/conifer/genshi_namespace.py index bb003e5..46cc013 100644 --- a/conifer/genshi_namespace.py +++ b/conifer/genshi_namespace.py @@ -11,6 +11,10 @@ import django.forms def instructor_url(instructor, suffix=''): return '/syrup/instructor/%d/%s' % (instructor.id, suffix) +# added to make department browse +def department_url(department, suffix=''): + return '/syrup/department/%d/%s' % (department.id, suffix) + def call_or_value(obj, dflt=None): # This is used by the generics templates. diff --git a/conifer/syrup/urls.py b/conifer/syrup/urls.py index 720f02e..8b659d4 100644 --- a/conifer/syrup/urls.py +++ b/conifer/syrup/urls.py @@ -19,6 +19,7 @@ urlpatterns = patterns('conifer.syrup.views', (r'^opencourse/$', 'open_courses'), (r'^search/$', 'search'), (r'^instructors/$', 'instructors'), + (r'^departments/$', 'departments'), (r'^course/(?P\d+)/$', 'course_detail'), (r'^instructor/(?P.*)/$', 'instructor_detail'), (r'^department/(?P.*)/$', 'department_detail'), diff --git a/conifer/templates/browse_courses.xhtml b/conifer/templates/browse_courses.xhtml index cca8b5d..95d40c4 100644 --- a/conifer/templates/browse_courses.xhtml +++ b/conifer/templates/browse_courses.xhtml @@ -15,10 +15,10 @@ title = _('Browse the Reserves')

Choose from one of the options below:

-- 2.11.0