Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv20848

Modified Files:
        node.tr.jspx page.jspx 
Log Message:
added node types as css class here and there


See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates


Index: node.tr.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/node.tr.jspx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- node.tr.jspx        21 Apr 2008 17:40:32 -0000      1.3
+++ node.tr.jspx        4 Jun 2008 15:21:52 -0000       1.4
@@ -10,7 +10,8 @@
       <mm:import externid="id"     required="true" from="request,parameters" />
       <mm:import externid="node"     required="true" from="request,parameters" 
/>
       <mm:node referid="node">
-        <tr class="click ${(! empty status and status.index % 2 eq 0) ? 'even' 
: 'odd'}" >
+        <mm:nodeinfo type="nodemanager" id="nodemanager" write="false" />
+        <tr class="click ${(! empty status and status.index % 2 eq 0) ? 'even' 
: 'odd'} ${nodemanager}">
           <td class="node number">
             <mm:field name="number" />
           </td>


Index: page.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/page.jspx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- page.jspx   24 Apr 2008 20:00:52 -0000      1.11
+++ page.jspx   4 Jun 2008 15:21:52 -0000       1.12
@@ -9,7 +9,7 @@
       Presents a table with one page of query results. Plus paging to other 
pages (in tfoot).
       Used in ajax-calls, but can also be directly included with mm:include 
(for initial results).
       @todo Searching only happens in actual mmbase queries now. How about 
lucene queries?
-      @version $Id: page.jspx,v 1.11 2008/04/24 20:00:52 michiel Exp $
+      @version $Id: page.jspx,v 1.12 2008/06/04 15:21:52 michiel Exp $
   -->
   <jsp:output omit-xml-declaration="true" />
   <mm:content expires="0" type="application/xml">
@@ -56,7 +56,7 @@
           <caption class="${empty search ? 'emptysearch' : 'search'} ${size gt 
pagesize ? 'pagingneeded' : 'pagingnotneeded'}">${summary}</caption>
           &lt;!-- <jsp:expression>bq.toSql()</jsp:expression> --&gt;
           <thead>
-            <tr>
+            <tr class="${query.nodeManager.name}">
               <th class="node number">#</th>
               <th class="node"> </th>
               <mm:fieldlist nodetype="${query.nodeManager.name}" type="list">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to