history.jsp revision 07f0be6fc0c78e3446f89b4a28384dbf35fe19e3
919N/ASee LICENSE.txt included in this distribution for the specific
919N/Afile and include the License file at LICENSE.txt.
371N/A%><%/* ---------------------- history.jsp start --------------------- */
98N/A PageConfig cfg = PageConfig.get(request);
98N/A String path = cfg.getPath();
970N/A if (path.length() > 0) {
977N/A String context = request.getContextPath();
970N/A RuntimeEnvironment env = cfg.getEnv();
970N/A String uriEncodedName = cfg.getUriEncodedPath();
970N/A String userPage = env.getUserPage();
970N/A String userPageSuffix = env.getUserPageSuffix();
98N/A String bugPage = env.getBugPage();
493N/A String bugRegex = env.getBugPattern();
98N/A if (bugRegex == null || bugRegex.equals("")) {
98N/A Pattern bugPattern = Pattern.compile(bugRegex);
98N/A String reviewPage = env.getReviewPage();
761N/A String reviewRegex = env.getReviewPattern();
559N/A if(reviewRegex == null || reviewRegex.equals("")) {
761N/A Pattern reviewPattern = Pattern.compile(reviewRegex);
970N/A 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 (hist.hasTags()) {
if (!cfg.isDir()) {
if (hist.hasFileList()) {
for (HistoryEntry entry : hist.getHistoryEntries()) {
String rev = entry.getRevision();
if (rev == null || rev.length() == 0) {
String tags = entry.getTags();
if (cfg.isDir())
if (cfg.isDir()) {
if (entry.isActive()) {
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();
String jfile = Util.stripPathPrefix(path, ifile);
<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"