From: artunit Date: Thu, 20 Nov 2008 20:45:10 +0000 (+0000) Subject: git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@37 6d9bc8c9-1ec2-4278... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=95830163a2b79ef62936624d2d73c4eb535e98e9;p=Syrup.git git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@37 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/genshi_namespace.py b/conifer/genshi_namespace.py new file mode 100644 index 0000000..eb91cd8 --- /dev/null +++ b/conifer/genshi_namespace.py @@ -0,0 +1,2 @@ +from itertools import cycle, islice # etc. +from os.path import isfile # for example diff --git a/conifer/genshi_support.py b/conifer/genshi_support.py index 76998f2..e62c2a0 100644 --- a/conifer/genshi_support.py +++ b/conifer/genshi_support.py @@ -1,3 +1,4 @@ +import genshi_namespace from django.http import HttpResponse, HttpRequest from genshi.template import TemplateLoader from genshi.filters import Translator @@ -36,5 +37,4 @@ def _inject_django_things_into_namespace(request, ns): ns['models'] = models ns['request'] = request ns['user'] = getattr(request, 'user', None) - - + ns.update(genshi_namespace.__dict__) diff --git a/conifer/static/main.css b/conifer/static/main.css index beeaf9a..235c02a 100644 --- a/conifer/static/main.css +++ b/conifer/static/main.css @@ -59,4 +59,7 @@ a:hover { text-decoration: underline; } } .pagetable td { border: #ddd 1px solid; padding: 4 8; } -.pagetable thead th { font-size: smaller; text-align: left; padding: 2 8; } \ No newline at end of file +.pagetable .odd { + background-color: #F8F8F8; +} +.pagetable thead th { font-size: smaller; text-align: left; padding: 2 8; } diff --git a/conifer/templates/open_courses.xhtml b/conifer/templates/open_courses.xhtml index b2ce51b..27fa00a 100644 --- a/conifer/templates/open_courses.xhtml +++ b/conifer/templates/open_courses.xhtml @@ -18,11 +18,14 @@ title = 'Open Courses' TermCodeTitle - + ${item.term} ${item.code} ${item.title} - + + + ${pagetable(paginator, count, pagerow, pageheader)} diff --git a/conifer/templates/paginate.xhtml b/conifer/templates/paginate.xhtml index b04dde3..4f29a33 100644 --- a/conifer/templates/paginate.xhtml +++ b/conifer/templates/paginate.xhtml @@ -2,15 +2,17 @@ xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude" py:strip=""> -
- +
${pagehead()} + ${pagerow(item)} +
@@ -29,4 +31,4 @@
- \ No newline at end of file +