history.jsp revision 1354
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
0N/A%><%/* ---------------------- history.jsp start --------------------- */
0N/A PageConfig cfg = PageConfig.get(request);
0N/A String path = cfg.getPath();
0N/A if (path.length() > 0) {
0N/A String context = request.getContextPath();
0N/A RuntimeEnvironment env = cfg.getEnv();
0N/A String uriEncodedName = cfg.getUriEncodedPath();
0N/A String userPage = env.getUserPage();
0N/A String userPageSuffix = env.getUserPageSuffix();
0N/A String bugPage = env.getBugPage();
0N/A String bugRegex = env.getBugPattern();
0N/A if (bugRegex == null || bugRegex.equals("")) {
0N/A Pattern bugPattern = Pattern.compile(bugRegex);
0N/A String reviewPage = env.getReviewPage();
0N/A String reviewRegex = env.getReviewPattern();
0N/A if(reviewRegex == null || reviewRegex.equals("")) {
0N/A Pattern reviewPattern = Pattern.compile(reviewRegex);
0N/A File f = cfg.getResourceFile();
0N/A hist = HistoryGuru.getInstance().getHistory(f);
0N/A %><h3>Problem</h3><p class="error"><%= e.getMessage() %></p><%
0N/A%><script type="text/javascript">/* <![CDATA[ */
0N/A<form action="<%= context + Prefix.DIFF_P + uriEncodedName %>">
0N/A <caption>History log of <a href="<%= context + Prefix.XREF_P
0N/A if (hist.hasFileList()) {
99N/A for (HistoryEntry entry : hist.getHistoryEntries()) {
82N/A String rev = entry.getRevision();
0N/A if (rev == null || rev.length() == 0) {
0N/A if (entry.isActive()) {
0N/A Date date = entry.getDate();
0N/A String author = entry.getAuthor();
0N/A } else if (userPage != null && userPage.length() > 0) {
0N/A String alink = Util.getEmail(author);
0N/A %><a href="<%= userPage + Util.htmlize(alink) + userPageSuffix
0N/A %>"><%= Util.htmlize(author)%></a><%
0N/A if (bugPage != null && bugPage.length() > 0) {
0N/A cout = bugPattern.matcher(cout).replaceAll("<a href=\""
0N/A if (reviewPage != null && reviewPage.length() > 0) {
0N/A cout = reviewPattern.matcher(cout).replaceAll("<a href=\""
0N/A Set<String> files = entry.getFiles();
0N/A jfile = ifile.substring(1);
0N/A } 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"