history.jsp revision 1423
278N/ASee LICENSE.txt included in this distribution for the specific
278N/Afile and include the License file at LICENSE.txt.
278N/A%><%/* ---------------------- history.jsp start --------------------- */
1845N/A PageConfig cfg = PageConfig.get(request);
1845N/A String path = cfg.getPath();
278N/A if (path.length() > 0) {
278N/A String context = request.getContextPath();
278N/A RuntimeEnvironment env = cfg.getEnv();
278N/A String uriEncodedName = cfg.getUriEncodedPath();
278N/A String userPage = env.getUserPage();
278N/A String userPageSuffix = env.getUserPageSuffix();
278N/A String bugPage = env.getBugPage();
278N/A String bugRegex = env.getBugPattern();
278N/A if (bugRegex == null || bugRegex.equals("")) {
Pattern bugPattern = Pattern.compile(bugRegex);
String reviewPage = env.getReviewPage();
String reviewRegex = env.getReviewPattern();
if(reviewRegex == null || reviewRegex.equals("")) {
Pattern reviewPattern = Pattern.compile(reviewRegex);
%><h3>Problem</h3><p class="error"><%= e.getMessage() %></p><%
%><script type="text/javascript">/* <![CDATA[ */
<form action="<%= context + Prefix.DIFF_P + uriEncodedName %>">
<caption>History log of <a href="<%= context + Prefix.XREF_P
if (!cfg.isDir()) {
if (!subdir.endsWith("/")) {
int idx = subdir.lastIndexOf('/');
subdir = subdir.substring(0, idx+1);
for (HistoryEntry entry : hist.getHistoryEntries()) {
String rev = entry.getRevision();
if (rev == null || rev.length() == 0) {
encodedRev = "?r=" + Util.URIEncode(rev);
if (cfg.isDir()) {
} else if (entry.isActive()) {
context + Prefix.XREF_P + rp + encodedRev %>"><%= rev %></a></td>
Date date = entry.getDate();
%><%= df.format(date) %><%
String author = entry.getAuthor();
} else if (userPage != null && userPage.length() > 0) {
String alink = Util.getEmail(author);
%><a href="<%= userPage + Util.htmlize(alink) + userPageSuffix
%>"><%= Util.htmlize(author)%></a><%
if (bugPage != null && bugPage.length() > 0) {
cout = bugPattern.matcher(cout).replaceAll("<a href=\""
if (reviewPage != null && reviewPage.length() > 0) {
cout = reviewPattern.matcher(cout).replaceAll("<a href=\""
Set<String> files = entry.getFiles();
if (ifile.startsWith(subdir)
<a class="revh" href="<%= context + Prefix.XREF_P + ifile + encodedRev
<p class="rssbadge"><a href="<%=context + Prefix.RSS_P + uriEncodedName
/* ---------------------- history.jsp end --------------------- */
include file="foot.jspf"