[jboss-svn-commits] JBL Code SVN: r12128 - labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/summary.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu May 24 18:29:39 EDT 2007


Author: unibrew
Date: 2007-05-24 18:29:39 -0400 (Thu, 24 May 2007)
New Revision: 12128

Modified:
   labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/summary/viewsummary_body.xhtml
Log:
[JBFORUMS-217] SummaryView redesigned.

Modified: labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/summary/viewsummary_body.xhtml
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/summary/viewsummary_body.xhtml	2007-05-24 19:05:57 UTC (rev 12127)
+++ labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/summary/viewsummary_body.xhtml	2007-05-24 22:29:39 UTC (rev 12128)
@@ -25,54 +25,53 @@
 <div  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:c="http://java.sun.com/jstl/core"
-      xmlns:h="http://java.sun.com/jsf/html"      
+      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:forums="http://www.jboss.com/products/jbossportal/forums"
-      class="bb"
->
+      class="forumscontainer"
+>
+
 <ui:composition template="/views/common/common.xhtml">
-    <ui:define name="mainContent">
-		<table border="0" cellpadding="4" cellspacing="1" width="100%" align="center">
-		   <!-- main page link -->
-		   <tr>
-		         <td align="center" valign="middle" class="nav" width="100%">
-		           <span class="nav">                
-		                &#160;&#160;&#160;
-		  				<h:outputLink value="#{forums:outputLink(shared.links['category'],true)}" styleClass="nav">
-		  					<h:outputText value="#{shared.mainPageName}"/>  					
-		  				</h:outputLink>      		  	       		  		   
-				   </span>
-		         </td>
-		   </tr> 
-		   
-		   <!-- topic type -->
-		   <tr>
-		      <th class="thSides" colspan="1" height="25" valign="middle">
-		         ${resource[summary.blockTopicsType]}		 
-		      </th>
-		   </tr> 
-		   
-		   <!-- a list of topics for the summary-->
-		   <c:forEach items="#{summary.topics}" var="topicrow">
-		      <tr>
-		         <td class="row1" width="100%">                           
-		  			<h:outputLink value="#{forums:outputLink(shared.links['topic'],true)}" styleClass="topictitle">
-		            	<f:param name="t" value="#{topicrow.id}"/>
-		  				<h:outputText value="#{topicrow.subject}"/>  					
-		  			</h:outputLink>      		  	       		  		   
-		         </td>
-		      </tr>
-		   </c:forEach>
-		   
-		   <!-- number of topics found in the summary --> 
-		   <tr>
-		   	<td class="row3" height="30" align="center" valign="middle">
-		    	<span class="postdetails">
-		        	${summary.numberOfTopicsFound}&#160;${resource.L_TOPICS_FOUND}
-		        </span>
-		    </td>
-		   </tr>   
-		</table>
-	</ui:define>
-</ui:composition>
-</div>
\ No newline at end of file
+<ui:define name="mainContent">
+
+<div class="forumbread">
+    <ul>
+        <li class="first">
+            <h:outputLink value="#{forums:outputLink(shared.links['category'],true)}">
+                <h:outputText value="#{shared.mainPageName}"/>  					
+            </h:outputLink>
+        </li>
+    </ul>
+</div>
+
+<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="forumtablestyle">
+
+    <!-- topic type -->
+    <tr class="header">
+        <td class="forumheaderfirst">
+            ${resource[summary.blockTopicsType]}
+        </td>
+    </tr>
+    
+    <!-- a list of topics for the summary-->
+    <c:forEach items="#{summary.topics}" var="topicrow" varStatus="status" >
+    <tr class='${(status.index%2==0)?"evenRow":"oddRow"}'>
+        <td class='${status.last?"bottomline":""}' >
+            <h:outputLink value="#{forums:outputLink(shared.links['topic'],true)}">
+                <f:param name="t" value="#{topicrow.id}"/>
+                <h:outputText value="#{topicrow.subject}"/>  					
+            </h:outputLink>
+        </td>
+    </tr>
+    </c:forEach>
+    
+</table>
+        
+<!-- number of topics found in the summary -->
+<br/> 
+<span class="note">${summary.numberOfTopicsFound}&#160;${resource.L_TOPICS_FOUND}</span>
+<hr />
+
+</ui:define>
+</ui:composition>
+</div>




More information about the jboss-svn-commits mailing list