implemented front page content management, finally wired up the user locale
and timezone default mechanism, and did some other bugfixing and stuff
This commit is contained in:
@@ -220,6 +220,11 @@
|
||||
SRC="<%= rdat.getFullImagePath("bn_nuke.gif") %>" ALT="Nuke" WIDTH=80 HEIGHT=24
|
||||
BORDER=0></A><P>
|
||||
<% } // end if (can nuke) %>
|
||||
<% if (msg.canPublish()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("postops?" + po_loc + "&cmd=PU") %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_publish.gif") %>" ALT="Publish" WIDTH=80 HEIGHT=24
|
||||
BORDER=0></A><P>
|
||||
<% } // end if (can publish) %>
|
||||
</TD></TR></TABLE><BR>
|
||||
<% } // end if (showing advanced controls) %>
|
||||
<% can_line = true; %>
|
||||
|
||||
@@ -26,5 +26,29 @@
|
||||
RenderData rdat = RenderConfig.createRenderData(application,request,response);
|
||||
%>
|
||||
<% if (rdat.useHTMLComments()) { %><!-- Top content panel --><% } %>
|
||||
<% rdat.writeContentHeader(out,"Venice Currents",null); %>
|
||||
TODO: Something profound goes here. :-)
|
||||
<% if (data.displayWelcome()) { %>
|
||||
<% rdat.writeContentHeader(out,rdat.getStockMessage("welcome-top"),null); %>
|
||||
<%= rdat.getStdFontTag(null,1) %><% rdat.writeStockMessage(out,"welcome"); %></FONT><P>
|
||||
<% } // end if %>
|
||||
<% rdat.writeContentHeader(out,rdat.getStockMessage("currents-top"),null); %>
|
||||
<% int ntp = data.getNumTopPosts(); %>
|
||||
<% if (ntp>0) { %>
|
||||
<% for (int i=0; i<ntp; i++) { %>
|
||||
<% if (i>0) { %><HR WIDTH="70%"><% } %>
|
||||
<%
|
||||
TopicMessageContext msg = data.getTopPost(i);
|
||||
String poster = data.getPosterName(msg);
|
||||
%>
|
||||
<%= rdat.getStdFontTag(null,1) %>
|
||||
<B><%= msg.getPseud() %></B>
|
||||
(<EM>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("user/" + poster) %>" TARGET="_blank"><%= poster %></A>,
|
||||
<%= rdat.formatDateForDisplay(msg.getPostDate()) %>
|
||||
</EM>)
|
||||
<P>
|
||||
<PRE><%= rdat.rewritePostData(data.getMessageBodyText(msg)) %></PRE>
|
||||
</FONT>
|
||||
<% } // end for %>
|
||||
<% } else { %>
|
||||
<%= rdat.getStdFontTag(null,1) %><EM>No front page postings found.</EM></FONT>
|
||||
<% } // end if %>
|
||||
Reference in New Issue
Block a user