[open-ils-commits] r172 - servres/trunk/conifer/templates (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 13 12:14:53 EDT 2009
Author: gfawcett
Date: 2009-03-13 12:14:50 -0400 (Fri, 13 Mar 2009)
New Revision: 172
Added:
servres/trunk/conifer/templates/courses.xhtml
Modified:
servres/trunk/conifer/templates/browse_courses.xhtml
Log:
added simple course-browse screen.
Modified: servres/trunk/conifer/templates/browse_courses.xhtml
===================================================================
--- servres/trunk/conifer/templates/browse_courses.xhtml 2009-03-13 02:24:15 UTC (rev 171)
+++ servres/trunk/conifer/templates/browse_courses.xhtml 2009-03-13 16:14:50 UTC (rev 172)
@@ -14,9 +14,11 @@
to <a href="/accounts/login/?next=/syrup/">log in</a>)
<h2>Choose from one of the options below:</h2>
<ul>
- <li><a href="instructors">Browse by Instructor</a></li>
- <li><a href="departments">Browse by Department</a></li>
<li><a href="courses">Browse by Course Name</a></li>
+ <li><a style="text-decoration: line-through;"
+ href="instructors">Browse by Instructor</a> (not working yet)</li>
+ <li><a style="text-decoration: line-through;"
+ href="#departments">Browse by Department</a> (not working yet)</li>
</ul>
<div class="gap"/>
</body>
Added: servres/trunk/conifer/templates/courses.xhtml
===================================================================
--- servres/trunk/conifer/templates/courses.xhtml (rev 0)
+++ servres/trunk/conifer/templates/courses.xhtml 2009-03-13 16:14:50 UTC (rev 172)
@@ -0,0 +1,26 @@
+<?python
+title = _('Courses')
+?>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:py="http://genshi.edgewall.org/">
+<xi:include href="master.xhtml"/>
+<xi:include href="paginate.xhtml"/>
+<head>
+ <title>${title}</title>
+ <script type="text/javascript">
+ <!-- !This ought to be in paginate.xhtml, not here. how to do? -->
+ $(function() { $('.pagetable').tablesorter(); });
+ </script>
+</head>
+<body>
+ <h1>${title}</h1>
+ <tr py:def="pageheader()">
+ <th>Name</th>
+ </tr>
+ <span py:def="pagerow(item)">
+ <td><a href="${item.course_url()}">${item.title}, ${item.term}</a></td>
+ </span>
+ ${pagetable(paginator, count, pagerow, pageheader)}
+</body>
+</html>
More information about the open-ils-commits
mailing list