history.jsp revision 1281
919N/ASee LICENSE.txt included in this distribution for the specific
919N/Afile and include the License file at LICENSE.txt.
1178N/A%><%/* ---------------------- history.jsp start --------------------- */
817N/A PageConfig cfg = PageConfig.get(request);
98N/A String path = cfg.getPath();
493N/A if (path.length() > 0) {
98N/A String context = request.getContextPath();
98N/A RuntimeEnvironment env = cfg.getEnv();
493N/A String uriEncodedName = cfg.getUriEncodedPath();
910N/A String userPage = env.getUserPage();
910N/A String userPageSuffix = env.getUserPageSuffix();
98N/A String bugPage = env.getBugPage();
998N/A String bugRegex = env.getBugPattern();
998N/A if (bugRegex == null || bugRegex.equals("")) {
998N/A Pattern bugPattern = Pattern.compile(bugRegex);
98N/A String reviewPage = env.getReviewPage();
998N/A String reviewRegex = env.getReviewPattern();
998N/A if(reviewRegex == null || reviewRegex.equals("")) {
Pattern reviewPattern = Pattern.compile(reviewRegex);
File f = cfg.getResourceFile();
hist = HistoryGuru.getInstance().getHistory(f);
%><h3>Problem</h3><p class="error"><%= e.getMessage() %></p><%
%><script type="text/javascript">/* <![CDATA[ */
document.domReady.push(function() {domReadyHistory();});
<form action="<%= context + Prefix.DIFF_P + uriEncodedName %>">
<caption>History log of <a href="<%= context + Prefix.XREF_P
if (!cfg.isDir()) {
if (hist.hasFileList()) {
for (HistoryEntry entry : hist.getHistoryEntries()) {
String rev = entry.getRevision();
if (rev == null || rev.length() == 0) {
if (cfg.isDir()) {
if (entry.isActive()) {
Date date = entry.getDate();
%><%= df.format(date) %><%
String author = entry.getAuthor();
} else if (userPage != null && userPage.length() > 0) {
%><a href="<%= userPage + Util.htmlize(author) + 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();
jfile = ifile.substring(1);
} else if (ifile.startsWith(path)
<a class="h" href="<%= context + Prefix.XREF_P + ifile %>"><%= jfile %></a><br/><%
<a class="h" href="<%= context + Prefix.XREF_P + ifile %>?r=<%= rev %>"><%= jfile %></a><br/><%
<p class="rssbadge"><a href="<%=context + Prefix.RSS_P + uriEncodedName
/* ---------------------- history.jsp end --------------------- */
include file="foot.jspf"