history.jsp revision 318
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
0N/Aident "@(#)history.jsp 1.1 05/11/11 SMI"
0N/A--%><%@ page import = "javax.servlet.*,
41N/Aif (path.length() > 0 && valid) {
129N/A String userPage = environment.getUserPage();
129N/A String bugPage = environment.getBugPage();
129N/A String bugRegex = environment.getBugPattern();
88N/A if(bugRegex == null || bugRegex.equals("")) {
88N/A Pattern bugPattern = Pattern.compile(bugRegex);
318N/A String reviewPage = environment.getReviewPage();
318N/A String reviewRegex = environment.getReviewPattern();
318N/A if(reviewRegex == null || reviewRegex.equals("")) {
318N/A Pattern reviewPattern = Pattern.compile(reviewRegex);
256N/A if (!HistoryGuru.getInstance().hasHistory(f)) {
256N/A response.sendError(404, "No history");
50N/A HistoryReader hr = HistoryGuru.getInstance().getHistoryReader(f);
50N/A response.sendError(404, "No history");
189N/A <td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td>
0N/A String rev = hr.getRevision();
189N/A if (rev == null || rev.length() == 0) {
0N/A if(hr.isActive()) {
170N/A rp = Util.URIEncodePath(rp);
283N/A%><td> <a name="<%=rev%>" href="<%= context +"/xref" + rp + "?r=" + Util.URIEncode(rev) %>"><%=rev%></a> </td><td align="center"><input type="radio" name="r1" value="<%=rp%>@<%=rev%>"/>
194N/A Date date = hr.getDate();
0N/Aif(userPage != null && ! userPage.equals("")) {
0N/A %><%= hr.getAuthor() %><%
318N/Aif (bugPage != null && ! bugPage.equals("")) {
318N/A cout=bugPattern.matcher(cout).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>"); }
318N/Aif (reviewPage != null && ! reviewPage.equals("")) {
318N/A cout=reviewPattern.matcher(cout).replaceAll("<a href=\"" + reviewPage + "$1\">$1</a>"); }
50N/AList<String> files = hr.getFiles();
50N/A jfile = ifile.substring(1);
0N/A %><p><b>Note:</b> No associated file changes are available for revisions with strike-through numbers (eg. <strike>1.45</strike>)</p><%
218N/A %><p class="rssbadge"><a href="<%=context%>/rss<%=Util.URIEncodePath(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><%