📄 forum-row.jsp
字号:
<%-- - $RCSfile: forum-row.jsp,v $ - $Revision: 1.21.2.1 $ - $Date: 2003/06/17 13:22:12 $ - - Copyright (C) 1999-2003 Jive Software. All rights reserved. - - This software is the proprietary information of Jive Software. Use is subject to license terms.--%><%@ page import="com.jivesoftware.forum.util.SkinUtils, com.jivesoftware.forum.*, com.jivesoftware.forum.action.util.Guest"%><% // This page assumes 3 variables: // forum - a Forum object // status - an int, used to compute the row number and print a css tag // action - an instance of ForumActionSupport (or a subclass).%><tr class="<%= ((status++%2==1)?"jive-odd":"jive-even") %>" valign="top"> <td class="jive-bullet" width="1%"> <% if (action.getReadStatus(forum, ReadTracker.UNREAD)) { %> <img src="images/unread.gif" width="9" height="9" border="0" vspace="4"> <% } else if (action.getReadStatus(forum, ReadTracker.UPDATED)) { %> <img src="images/updated.gif" width="9" height="9" border="0" vspace="4"> <% } else { %> <img src="images/read.gif" width="9" height="9" border="0" vspace="4"> <% } %> </td> <td class="jive-forum-name" width="97%"> <!-- Forum Name --> <a href="forum.jspa?forumID=<%= forum.getID() %>" ><%= forum.getName() %></a> <!-- Forum Description (if it exists) --> <% if (forum.getDescription() != null) { %> <span class="jive-description"> <br><%= forum.getDescription() %> </span> <% } %> </td> <td class="jive-counts" width="1%" nowrap> <!-- Thread and Message Counts --> <%= action.getNumberFormat().format(forum.getThreadCount()) %> / <%= action.getNumberFormat().format(forum.getMessageCount()) %> </td> <td class="jive-date" width="1%" nowrap> <!-- Modification Date and Last Post --> <%= action.getDateFormat().format(forum.getModificationDate()) %> <!-- Show the last post link if that feature is enabled --> <jive:property if="skin.default.showLastPostLink"> <% ForumMessage lastPost = SkinUtils.getLastPost(forum); if (lastPost != null) { %> <span class="jive-last-post"> <br> <%-- by: {LAST_POST} --%> <jive:i18n key="global.last_post_by"> <jive:arg> <% if (lastPost.getUser() != null) { %> <a href="thread.jspa?messageID=<%= lastPost.getID() %>&tstart=0#<%= lastPost.getID() %>" ><%= lastPost.getUser().getUsername() %> »</a> <% } else { Guest guest = new Guest(); guest.setMessage(lastPost); %> <span class="jive-guest"> <a href="thread.jspa?messageID=<%= lastPost.getID() %>&tstart=0#<%= lastPost.getID() %>" ><%= guest.getDisplay() %> »</a> </span> <% } %> </jive:arg> </jive:i18n> </span> <% } %> </jive:property> </td></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -