history.jsp revision 1390
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 --------------------- */
1281N/A PageConfig cfg = PageConfig.get(request);
1281N/A String path = cfg.getPath();
1281N/A if (path.length() > 0) {
1281N/A String context = request.getContextPath();
1281N/A RuntimeEnvironment env = cfg.getEnv();
1281N/A String uriEncodedName = cfg.getUriEncodedPath();
1281N/A String userPage = env.getUserPage();
1281N/A String userPageSuffix = env.getUserPageSuffix();
1281N/A String bugPage = env.getBugPage();
1281N/A String bugRegex = env.getBugPattern();
1281N/A if (bugRegex == null || bugRegex.equals("")) {
1281N/A Pattern bugPattern = Pattern.compile(bugRegex);
1281N/A String reviewPage = env.getReviewPage();
1281N/A String reviewRegex = env.getReviewPattern();
1281N/A if(reviewRegex == null || reviewRegex.equals("")) {
1281N/A Pattern reviewPattern = Pattern.compile(reviewRegex);
1281N/A %><h3>Problem</h3><p class="error"><%= e.getMessage() %></p><%
1186N/A%><script type="text/javascript">/* <![CDATA[ */
1186N/A<form action="<%= context + Prefix.DIFF_P + uriEncodedName %>">
1281N/A <caption>History log of <a href="<%= context + Prefix.XREF_P
1355N/A if (!subdir.endsWith("/")) {
1355N/A int idx = subdir.lastIndexOf('/');
1355N/A subdir = subdir.substring(0, idx+1);
1281N/A for (HistoryEntry entry : hist.getHistoryEntries()) {
1281N/A String rev = entry.getRevision();
1281N/A if (rev == null || rev.length() == 0) {
1355N/A encodedRev = "?r=" + Util.URIEncode(rev);
1355N/A } else if (entry.isActive()) {
1355N/A context + Prefix.XREF_P + rp + encodedRev %>"><%= rev %></a></td>
1281N/A Date date = entry.getDate();
1281N/A String author = entry.getAuthor();
1281N/A } else if (userPage != null && userPage.length() > 0) {
1297N/A String alink = Util.getEmail(author);
1297N/A %><a href="<%= userPage + Util.htmlize(alink) + userPageSuffix
1281N/A %>"><%= Util.htmlize(author)%></a><%
1281N/A if (bugPage != null && bugPage.length() > 0) {
1281N/A cout = bugPattern.matcher(cout).replaceAll("<a href=\""
1281N/A if (reviewPage != null && reviewPage.length() > 0) {
1281N/A cout = reviewPattern.matcher(cout).replaceAll("<a href=\""
1281N/A Set<String> files = entry.getFiles();
1355N/A if (ifile.startsWith(subdir)
1390N/A<a class="revh" href="<%= context + Prefix.XREF_P + ifile + encodedRev
1186N/A<p class="rssbadge"><a href="<%=context + Prefix.RSS_P + uriEncodedName
1186N/A/* ---------------------- history.jsp end --------------------- */