history.jsp revision 170
2N/ASee LICENSE.txt included in this distribution for the specific
2N/Afile and include the License file at LICENSE.txt.
2N/Aident "@(#)history.jsp 1.1 05/11/11 SMI"
2N/A--%><%@ page import = "javax.servlet.*,
34N/Aif (path.length() > 0 && valid) {
32N/A String userPage = environment.getUserPage();
58N/A String bugPage = environment.getBugPage();
32N/A String bugRegex = environment.getBugPattern();
225N/A if(bugRegex == null || bugRegex.equals("")) {
225N/A Pattern bugPattern = Pattern.compile(bugRegex);
225N/A HistoryReader hr = HistoryGuru.getInstance().getHistoryReader(f);
2N/A response.sendError(404, "No history");
38N/A<tr><td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td></tr>
92N/A String rev = hr.getRevision();
2N/A rev = Util.URIEncode(rev);
34N/A if(hr.isActive()) {
313N/A rp = Util.URIEncodePath(rp);
313N/A%><td> <a name="<%=rev%>" href="<%= context +"/xref" + rp + "?r=" + rev %>"><%=rev%></a> </td><td align="center"><input type="radio" name="r1" value="<%=rp%>@<%=rev%>"/>
2N/Aif(userPage != null && ! userPage.equals("")) {
105N/A %><%= hr.getAuthor() %><%
70N/A(bugPage != null && ! bugPage.equals("")) ?
70N/A bugPattern.matcher(Util.Htmlize(hr.getComment())).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>")
70N/AList<String> files = hr.getFiles();
6N/A jfile = ifile.substring(1);
38N/A %><p><b>Note:</b> No associated file changes are available for revisions with strike-through numbers (eg. <strike>1.45</strike>)</p><%
92N/A %><p class="rssbadge"><a href="<%=context%>/rss<%=path%>"><img src="<%=context%>/<%=environment.getWebappLAF()%>/img/rss.png" width="80" height="15" alt="RSS XML Feed" title="RSS XML Feed of latest changes"/></a></p><%