history.jsp revision 9a63f2da3b9ab574b07c997045c67b53f532572f
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenCDDL HEADER START
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenThe contents of this file are subject to the terms of the
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenCommon Development and Distribution License (the "License").
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenYou may not use this file except in compliance with the License.
b200bc3875fa06d42c8619865cc306c3297fcaccAki TuomiSee LICENSE.txt included in this distribution for the specific
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomilanguage governing permissions and limitations under the License.
b200bc3875fa06d42c8619865cc306c3297fcaccAki TuomiWhen distributing Covered Code, include this CDDL HEADER in each
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomifile and include the License file at LICENSE.txt.
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenIf applicable, add the following below this CDDL HEADER, with the
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Sirainenfields enclosed by brackets "[]" replaced with your own identifying
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo Siraineninformation: Portions Copyright [yyyy] [name of copyright owner]
17fc2a887a5683b2e1bbd6bd9fdf0cdb97b509fbTimo SirainenCDDL HEADER END
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);
HistoryReader hr = HistoryGuru.getInstance().getHistoryReader(f);
response.sendError(404, "No history");
<td colspan="4"><span class="pagetitle">History log of <a href="<%= context +"/xref" + path %>"><%=path%></a></span></td>
while (hr.next()) {
String rev = hr.getRevision();
if (rev == null || rev.length() == 0) {
rev = Util.URIEncode(rev);
if(hr.isActive()) {
rp = Util.URIEncodePath(rp);
%><td> <a name="<%=rev%>" href="<%= context +"/xref" + rp + "?r=" + rev %>"><%=rev%></a> </td><td align="center"><input type="radio" name="r1" value="<%=rp%>@<%=rev%>"/>
Date date = hr.getDate();
%><%=df.format(date)%><%
if(userPage != null && ! userPage.equals("")) {
%><%= hr.getAuthor() %><%
(bugPage != null && ! bugPage.equals("")) ?
bugPattern.matcher(Util.Htmlize(hr.getComment())).replaceAll("<a href=\"" + bugPage + "$1\">$1</a>")
List<String> files = hr.getFiles();
jfile = ifile.substring(1);
hr.close();
%><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<%=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"%>