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