pvollenweider 2005/04/26 18:09:58 CEST
Modified files: (Branch: JAHIA-4-1-BRANCH)
src/view/jsp blog_listing.jsp
Log:
Add indentation on main blog page if date change
Revision Changes Path
1.1.2.31 +9 -2 corporate_portal_templates/src/view/jsp/blog_listing.jsp
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/corporate_portal_templates/src/view/jsp/blog_listing.jsp.diff?r1=1.1.2.30&r2=1.1.2.31&f=h
Index: blog_listing.jsp
===================================================================
RCS file:
/home/cvs/repository/corporate_portal_templates/src/view/jsp/Attic/blog_listing.jsp,v
retrieving revision 1.1.2.30
retrieving revision 1.1.2.31
diff -u -r1.1.2.30 -r1.1.2.31
--- blog_listing.jsp 26 Apr 2005 16:05:15 -0000 1.1.2.30
+++ blog_listing.jsp 26 Apr 2005 16:09:58 -0000 1.1.2.31
@@ -161,6 +161,7 @@
String cacheStatus = jParams.getCacheStatus();
jParams.setCacheStatus(ParamBean.CACHE_OFFONCE);
int entriesCounter = 0;
+ boolean isDivDateClosed = true;
while (entriesEnum.hasMoreElements()) {
entriesCounter++;
JahiaContainer entry = (JahiaContainer)
entriesEnum.nextElement();
@@ -203,7 +204,10 @@
sdf.applyPattern("dd.MM.yyyy");
String ddMMyyyy = sdf.format( new Date(dateLong) );
if (! ddMMyyyy.equals(ddMMyyyySaved)) {
- %><h2><%=ddMMyyyy%></h2><%
+ if (! isDivDateClosed){
+ %></div><%
+ }
+ %><h2><%=ddMMyyyy%></h2><div
style="padding-left:20px;"><%
}
ddMMyyyySaved = ddMMyyyy;
@@ -242,7 +246,7 @@
if (categoryTitle == null) {
categoryTitle = categoryKey;
}
- %><a
href="<%=blogPageUrl%>?category=<%=categoryKey%>"><%=categoryTitle%></a><%
+ %><a
href="<%=bypassUrl%>?category=<%=categoryKey%>"><%=categoryTitle%></a><%
if (catIter.hasNext()){
%>, <%
}
@@ -273,6 +277,9 @@
</dd>
<%
}
+ if (! isDivDateClosed) {
+ %></div><%
+ }
if (entriesCounter == 0) {
%>