history.jsp revision 194
970N/ASee LICENSE.txt included in this distribution for the specific
970N/Afile and include the License file at LICENSE.txt.
970N/Aident "@(#)history.jsp 1.1 05/11/11 SMI"
970N/A--%><%@ page import = "javax.servlet.*,
1261N/Aif (path.length() > 0 && valid) {
1261N/A String userPage = environment.getUserPage();
1261N/A String bugPage = environment.getBugPage();
1261N/A String bugRegex = environment.getBugPattern();
1261N/A if(bugRegex == null || bugRegex.equals("")) {
1261N/A Pattern bugPattern = Pattern.compile(bugRegex);
970N/A HistoryReader hr = HistoryGuru.getInstance().getHistoryReader(f);
1207N/A response.sendError(404, "No history");
1169N/A <td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td>
1123N/A String rev = hr.getRevision();
1273N/A if (rev == null || rev.length() == 0) {
970N/A rev = Util.URIEncode(rev);
1479N/A if(hr.isActive()) {
970N/A rp = Util.URIEncodePath(rp);
1207N/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%>"/>
1479N/A Date date = hr.getDate();
1479N/Aif(userPage != null && ! userPage.equals("")) {
1207N/A %><%= hr.getAuthor() %><%
1669N/A(bugPage != null && ! bugPage.equals("")) ?
1666N/A bugPattern.matcher(Util.Htmlize(hr.getComment())).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>")
1207N/AList<String> files = hr.getFiles();
1169N/A jfile = ifile.substring(1);
1261N/A %><p><b>Note:</b> No associated file changes are available for revisions with strike-through numbers (eg. <strike>1.45</strike>)</p><%
1612N/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><%