[jboss-cvs] jboss-seam/examples/wiki/view/plugins/feedTeasers ...
Christian Bauer
christian at hibernate.org
Fri Aug 17 09:00:30 EDT 2007
User: cbauer
Date: 07/08/17 09:00:30
Modified: examples/wiki/view/plugins/feedTeasers plugin.xhtml
Log:
Major refactoring of core data schema and some new features
Revision Changes Path
1.5 +27 -8 jboss-seam/examples/wiki/view/plugins/feedTeasers/plugin.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: plugin.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/plugins/feedTeasers/plugin.xhtml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- plugin.xhtml 6 Jul 2007 14:38:39 -0000 1.4
+++ plugin.xhtml 17 Aug 2007 13:00:30 -0000 1.5
@@ -23,27 +23,46 @@
</s:div>
<h:dataTable value="#{feedTeasersPlugin.teasers}" var="fe"
- styleClass="datatable rightBorder leftBorder topBorder bottomBorder"
- headerClass="regularHeader alignLeft"
+ styleClass="datatable rightBorder leftBorder topBorder bottomBorder feedTeaserTable"
+ headerClass="regularHeader alignLeft feedTeaserHeader"
columnClasses="teaserColumn"
- rowClasses="rowOdd,rowEven"
+ rowClasses="rowOdd, rowEven"
cellpadding="0" cellspacing="0" border="0">
<h:column>
<f:facet name="header"><h:outputText value="#{feedTeasersPreferences.properties['teaserTitle']}"/></f:facet>
<div class="teaserAuthorDate">
- <span class="teaserDate"><h:outputText value="#{fe.updatedDate}"><f:convertDateTime pattern="dd. MMM yyyy, HH:mm" timeZone="#{wikiPreferences.timeZone}"/></h:outputText></span>
- <s:span rendered="#{feedTeasersPreferences.properties['showAuthor']}"> (<span class="teaserAuthor">#{fe.author}</span>)</s:span>
+ <span class="teaserDate">
+ <h:outputText value="#{fe.updatedDate}"><f:convertDateTime pattern="dd. MMM yyyy, HH:mm" timeZone="#{wikiPreferences.timeZone}"/></h:outputText>
+ <h:outputText value=" #{wikiPreferences.timeZone}"/>
+
+ </span>
+ <s:span rendered="#{feedTeasersPreferences.properties['showAuthor']}"> (
+
+ <h:outputLink value="#{wiki:renderHomeURL(fe.document.createdBy)}"
+ rendered="#{!empty fe.document.createdBy.memberHome}">
+ <h:outputText styleClass="teaserAuthorLink" value="#{fe.document.createdBy.fullname}"/>
+ </h:outputLink>
+ <h:outputText styleClass="teaserAuthor" rendered="#{empty fe.document.createdBy.memberHome}" value="#{fe.author}"/>
+ )</s:span>
+ <br/>
+ <s:span rendered="#{fe.document.enableComments and wiki:sizeOf(fe.document.comments) > 0}">
+ <h:outputLink styleClass="feedTeaserComments" value="#{wiki:renderPermLink(fe.document)}#commentsDisplay">
+ #{wiki:sizeOf(fe.document.comments)} comment(s)
+ </h:outputLink>
+ </s:span>
</div>
<div class="teaserTitle">
<h:outputLink value="#{fe.link}">#{fe.title}</h:outputLink>
</div>
- <h:outputText value="#{wiki:truncateString(fe.descriptionValueStripped, feedTeasersPreferences.properties['truncateDescription'], '')}"/>
- <h:outputLink value="#{fe.link}"
+ <h:outputText styleClass="teaserBody"
+ value="#{wiki:truncateString(fe.descriptionValueStripped, feedTeasersPreferences.properties['truncateDescription'], '')}"/>
+ <h:outputLink styleClass="teaserBody"
+ value="#{fe.link}"
rendered="#{wiki:length(fe.descriptionValueStripped) > feedTeasersPreferences.properties['truncateDescription']}">
-  ...
+  more...
</h:outputLink>
</h:column>
More information about the jboss-cvs-commits
mailing list