[open-ils-commits] r85 - in servres/trunk/conifer: static templates
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 16 16:47:21 EST 2008
Author: artunit
Date: 2008-12-16 16:47:17 -0500 (Tue, 16 Dec 2008)
New Revision: 85
Modified:
servres/trunk/conifer/static/main.css
servres/trunk/conifer/templates/search_results.xhtml
Log:
Modified: servres/trunk/conifer/static/main.css
===================================================================
--- servres/trunk/conifer/static/main.css 2008-12-16 20:54:35 UTC (rev 84)
+++ servres/trunk/conifer/static/main.css 2008-12-16 21:47:17 UTC (rev 85)
@@ -77,3 +77,14 @@
.metalinks { padding-left: 12; color: gray; }
.metalinks a { color: navy; }
.metalinks { position: absolute; left: 300; }
+
+.instructors {
+ border: 1px solid #ccc;
+ float: left;
+ width: 50%;
+ padding: 2px 2px 2px 2px;
+ font-size: 1em;
+ line-height: 1em;
+ text-align: left;
+ margin-right: 5px;
+}
Modified: servres/trunk/conifer/templates/search_results.xhtml
===================================================================
--- servres/trunk/conifer/templates/search_results.xhtml 2008-12-16 20:54:35 UTC (rev 84)
+++ servres/trunk/conifer/templates/search_results.xhtml 2008-12-16 21:47:17 UTC (rev 85)
@@ -1,6 +1,7 @@
<?python
title = 'Search Results'
instructors = instructor_list
+courses = course_list
?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
@@ -21,18 +22,39 @@
You searched: <i>${query_string}</i>
</h3>
- <p style="font-size: large;">
- No. of instructors: <i> ${instr_len}</i>
- </p>
- <p py:for="foo in instructors" style="font-size: large;">
- <!--
- there are a couple of options here
- ${foo.instr_name()}<br/>
- ${foo.user.last_name}<br/>
- -->
-
- ${Markup(foo.instr_name_hl(norm_query))}<br/>
- </p>
+<!-- not sure if this is the best way to do this -->
+<!--
+ probably need a simple css option to hide instructors and course info
+-->
+<table py:if="instructors or courses">
+ <tr>
+ <!-- instructors -->
+ <td py:if="instructors" valign="top">
+ <table>
+ <tr>
+ <th>Last Name</th><th>First Name</th>
+ </tr>
+ <tr py:for="instructor in instructors">
+ <td>${Markup(instructor.instr_name_hl(norm_query))}</td>
+ <td>foo</td>
+ </tr>
+ </table>
+ </td>
+
+ <!-- courses -->
+ <td py:if="courses" valign="top">
+ <table>
+ <tr>
+ <th>Course</th>
+ </tr>
+ <tr py:for="course in courses">
+ <!-- will highlight this, probably pull in dept info -->
+ <td>${course.title}</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
<tr py:def="pageheader()">
<th>Author</th><th>Title</th>
More information about the open-ils-commits
mailing list