history.jsp revision 885
See LICENSE.txt included in this distribution for the specific
file and include the License file at LICENSE.txt.
ident "@(#)history.jsp 1.1 05/11/11 SMI"
--%><%@ page import = "javax.servlet.*,
java.io.*,
%><%@include file="mast.jsp"%><%
if (path.length() > 0 && valid) {
String userPage = environment.getUserPage();
String bugPage = environment.getBugPage();
String bugRegex = environment.getBugPattern();
if(bugRegex == null || bugRegex.equals("")) {
Pattern bugPattern = Pattern.compile(bugRegex);
String reviewPage = environment.getReviewPage();
String reviewRegex = environment.getReviewPattern();
if(reviewRegex == null || reviewRegex.equals("")) {
Pattern reviewPattern = Pattern.compile(reviewRegex);
if (!HistoryGuru.getInstance().hasHistory(f)) {
response.sendError(404, "No history");
History hist = HistoryGuru.getInstance().getHistory(f);
response.sendError(404, "No history");
<td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td>
for (HistoryEntry entry : hist.getHistoryEntries()) {
String rev = entry.getRevision();
if (rev == null || rev.length() == 0) {
if (entry.isActive()) {
String rp = Util.URIEncodePath(path);
%><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%>"/>
Date date = entry.getDate();
%><%=df.format(date)%><%
String author = entry.getAuthor();
} else if (userPage != null && ! userPage.equals("")) {
if (bugPage != null && ! bugPage.equals("")){
cout=bugPattern.matcher(cout).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>"); }
if (reviewPage != null && ! reviewPage.equals("")) {
cout=reviewPattern.matcher(cout).replaceAll("<a href=\"" + reviewPage + "$1\">$1</a>"); }
Set<String> files = entry.getFiles();
jfile = ifile.substring(1);
%><p><b>Note:</b> No associated file changes are available for revisions with strike-through numbers (eg. <strike>1.45</strike>)</p><%
%><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><%
%><%@include file="foot.jspf"%>