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