10d40e9d0SAdam Hornáček<%-- 20d40e9d0SAdam Hornáček$Id$ 30d40e9d0SAdam Hornáček 40d40e9d0SAdam HornáčekCDDL HEADER START 50d40e9d0SAdam Hornáček 60d40e9d0SAdam HornáčekThe contents of this file are subject to the terms of the 70d40e9d0SAdam HornáčekCommon Development and Distribution License (the "License"). 80d40e9d0SAdam HornáčekYou may not use this file except in compliance with the License. 90d40e9d0SAdam Hornáček 100d40e9d0SAdam HornáčekSee LICENSE.txt included in this distribution for the specific 110d40e9d0SAdam Hornáčeklanguage governing permissions and limitations under the License. 120d40e9d0SAdam Hornáček 130d40e9d0SAdam HornáčekWhen distributing Covered Code, include this CDDL HEADER in each 140d40e9d0SAdam Hornáčekfile and include the License file at LICENSE.txt. 150d40e9d0SAdam HornáčekIf applicable, add the following below this CDDL HEADER, with the 160d40e9d0SAdam Hornáčekfields enclosed by brackets "[]" replaced with your own identifying 170d40e9d0SAdam Hornáčekinformation: Portions Copyright [yyyy] [name of copyright owner] 180d40e9d0SAdam Hornáček 190d40e9d0SAdam HornáčekCDDL HEADER END 200d40e9d0SAdam Hornáček 2156f072caSAdam HornáčekCopyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. 220d40e9d0SAdam HornáčekPortions Copyright 2011 Jens Elkner. 23*06988439SChris FrairePortions Copyright (c) 2018-2019, Chris Fraire <cfraire@me.com>. 240d40e9d0SAdam Hornáček 250d40e9d0SAdam Hornáček--%> 26a804b2d7SAdam Hornáček<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 27686556f2SAdam Hornáček<%@page import="org.opengrok.indexer.web.Util"%> 28686556f2SAdam Hornáček<%@page import="org.opengrok.indexer.history.HistoryGuru"%> 290d40e9d0SAdam Hornáček<%@page import="java.io.File"%> 300d40e9d0SAdam Hornáček<%@page errorPage="error.jsp" import=" 310d40e9d0SAdam Hornáčekjava.text.Format, 320d40e9d0SAdam Hornáčekjava.text.SimpleDateFormat, 330d40e9d0SAdam Hornáčekjava.util.Date, 34*06988439SChris Frairejava.util.Objects, 350d40e9d0SAdam Hornáčekjava.util.Set, 360d40e9d0SAdam Hornáčekjava.util.regex.Pattern, 370d40e9d0SAdam Hornáček 38686556f2SAdam Hornáčekorg.opengrok.indexer.history.History, 39686556f2SAdam Hornáčekorg.opengrok.indexer.history.HistoryEntry, 40686556f2SAdam Hornáčekorg.opengrok.indexer.configuration.RuntimeEnvironment" 410d40e9d0SAdam Hornáček%> 420d40e9d0SAdam Hornáček<%/* ---------------------- history.jsp start --------------------- */ 430d40e9d0SAdam Hornáček{ 440d40e9d0SAdam Hornáček PageConfig cfg = PageConfig.get(request); 450d40e9d0SAdam Hornáček 460d40e9d0SAdam Hornáček cfg.checkSourceRootExistence(); 470d40e9d0SAdam Hornáček 480d40e9d0SAdam Hornáček // Need to set the title before including httpheader.jspf 490d40e9d0SAdam Hornáček cfg.setTitle(cfg.getHistoryTitle()); 500d40e9d0SAdam Hornáček 510d40e9d0SAdam Hornáček String path = cfg.getPath(); 520d40e9d0SAdam Hornáček 530d40e9d0SAdam Hornáček if (path.length() > 0) { 540d40e9d0SAdam Hornáček File f = cfg.getResourceFile(); 550d40e9d0SAdam Hornáček History hist = null; 560d40e9d0SAdam Hornáček try { 570d40e9d0SAdam Hornáček hist = HistoryGuru.getInstance().getHistoryUI(f); 580d40e9d0SAdam Hornáček } catch (Exception e) { 590d40e9d0SAdam Hornáček // should not happen 600d40e9d0SAdam Hornáček response.sendError(HttpServletResponse.SC_NOT_FOUND, e.getMessage()); 610d40e9d0SAdam Hornáček return; 620d40e9d0SAdam Hornáček } 630d40e9d0SAdam Hornáček 640d40e9d0SAdam Hornáček if (hist == null) { 65*06988439SChris Fraire /* 660d40e9d0SAdam Hornáček * The history is not available even for a renamed file. 670d40e9d0SAdam Hornáček * Send 404 Not Found. 680d40e9d0SAdam Hornáček */ 690d40e9d0SAdam Hornáček response.sendError(HttpServletResponse.SC_NOT_FOUND); 700d40e9d0SAdam Hornáček return; 710d40e9d0SAdam Hornáček } 720d40e9d0SAdam Hornáček request.setAttribute("history.jsp-hist", hist); 730d40e9d0SAdam Hornáček } 740d40e9d0SAdam Hornáček} 750d40e9d0SAdam Hornáček%> 760d40e9d0SAdam Hornáček<%@ 770d40e9d0SAdam Hornáček 780d40e9d0SAdam Hornáčekinclude file="httpheader.jspf" 790d40e9d0SAdam Hornáček 800d40e9d0SAdam Hornáček%> 810d40e9d0SAdam Hornáček<% 820d40e9d0SAdam Hornáček{ 830d40e9d0SAdam Hornáček if ((request.getAttribute("history.jsp-hist")) != null) { 840d40e9d0SAdam Hornáček%> 850d40e9d0SAdam Hornáček<body> 860d40e9d0SAdam Hornáček<script type="text/javascript">/* <![CDATA[ */ 870d40e9d0SAdam Hornáček document.rev = function() { return getParameter("r"); }; 880d40e9d0SAdam Hornáček document.annotate = <%= PageConfig.get(request).annotate() %>; 890d40e9d0SAdam Hornáček document.domReady.push(function() { domReadyMast(); }); 900d40e9d0SAdam Hornáček document.pageReady.push(function() { pageReadyMast(); }); 910d40e9d0SAdam Hornáček/* ]]> */</script> 920d40e9d0SAdam Hornáček<div id="page"> 930d40e9d0SAdam Hornáček <div id="whole_header"> 940d40e9d0SAdam Hornáček <div id="header"> 950d40e9d0SAdam Hornáček<% 960d40e9d0SAdam Hornáček } 970d40e9d0SAdam Hornáček} 980d40e9d0SAdam Hornáček{ 990d40e9d0SAdam Hornáček if (request.getAttribute("history.jsp-hist") != null) { 1000d40e9d0SAdam Hornáček%><%@ 1010d40e9d0SAdam Hornáček 1020d40e9d0SAdam Hornáčekinclude file="pageheader.jspf" 1030d40e9d0SAdam Hornáček 1040d40e9d0SAdam Hornáček%> 1050d40e9d0SAdam Hornáček<% 1060d40e9d0SAdam Hornáček } 1070d40e9d0SAdam Hornáček} 1080d40e9d0SAdam Hornáček{ 1090d40e9d0SAdam Hornáček PageConfig cfg = PageConfig.get(request); 1100d40e9d0SAdam Hornáček String context = request.getContextPath(); 1110d40e9d0SAdam Hornáček String path = cfg.getPath(); 1120d40e9d0SAdam Hornáček 113*06988439SChris Fraire History hist; 1140d40e9d0SAdam Hornáček if ((hist = (History) request.getAttribute("history.jsp-hist")) != null) { 1150d40e9d0SAdam Hornáček 1160d40e9d0SAdam Hornáček int start = cfg.getSearchStart(); 1170d40e9d0SAdam Hornáček int max = cfg.getSearchMaxItems(); 1180d40e9d0SAdam Hornáček long totalHits = hist.getHistoryEntries().size(); 1190d40e9d0SAdam Hornáček long thispage = Math.min(totalHits - start, max); 1200d40e9d0SAdam Hornáček 1210d40e9d0SAdam Hornáček // We have a lots of results to show: create a slider for them 1220d40e9d0SAdam Hornáček request.setAttribute("history.jsp-slider", Util.createSlider(start, max, totalHits, request)); 1230d40e9d0SAdam Hornáček%> 1240d40e9d0SAdam Hornáček </div> 1250d40e9d0SAdam Hornáček <div id="Masthead">History log of 1260d40e9d0SAdam Hornáček <%= Util.breadcrumbPath(context + Prefix.XREF_P, path,'/',"",true,cfg.isDir()) %> 127ab235745SChris Fraire (Results <b> <%= totalHits != 0 ? start + 1 : 0 %> – <%= thispage + start 1280d40e9d0SAdam Hornáček %></b> of <b><%= totalHits %></b>) 1290d40e9d0SAdam Hornáček </div> 1300d40e9d0SAdam Hornáček<% 1310d40e9d0SAdam Hornáček } 1320d40e9d0SAdam Hornáček} 1330d40e9d0SAdam Hornáček{ 1340d40e9d0SAdam Hornáček if (request.getAttribute("history.jsp-hist") != null) { 1350d40e9d0SAdam Hornáček%> 1360d40e9d0SAdam Hornáček <%@ 1370d40e9d0SAdam Hornáček 1380d40e9d0SAdam Hornáčekinclude file="minisearch.jspf" 1390d40e9d0SAdam Hornáček 1400d40e9d0SAdam Hornáček%> 1410d40e9d0SAdam Hornáček<% 1420d40e9d0SAdam Hornáček } 1430d40e9d0SAdam Hornáček} 1440d40e9d0SAdam Hornáček{ 1450d40e9d0SAdam Hornáček PageConfig cfg = PageConfig.get(request); 1460d40e9d0SAdam Hornáček String context = request.getContextPath(); 1470d40e9d0SAdam Hornáček String path = cfg.getPath(); 148*06988439SChris Fraire History hist; 1490d40e9d0SAdam Hornáček if ((hist = (History) request.getAttribute("history.jsp-hist")) != null) { 1500d40e9d0SAdam Hornáček RuntimeEnvironment env = cfg.getEnv(); 1510d40e9d0SAdam Hornáček String uriEncodedName = cfg.getUriEncodedPath(); 1520d40e9d0SAdam Hornáček 1530d40e9d0SAdam Hornáček boolean striked = false; 1540d40e9d0SAdam Hornáček String userPage = env.getUserPage(); 1550d40e9d0SAdam Hornáček String userPageSuffix = env.getUserPageSuffix(); 1560d40e9d0SAdam Hornáček String bugPage = env.getBugPage(); 1570d40e9d0SAdam Hornáček String bugRegex = env.getBugPattern(); 1580d40e9d0SAdam Hornáček Pattern bugPattern = Pattern.compile(bugRegex); 1590d40e9d0SAdam Hornáček String reviewPage = env.getReviewPage(); 1600d40e9d0SAdam Hornáček String reviewRegex = env.getReviewPattern(); 1610d40e9d0SAdam Hornáček Pattern reviewPattern = Pattern.compile(reviewRegex); 1620d40e9d0SAdam Hornáček 1630d40e9d0SAdam Hornáček Format df = new SimpleDateFormat("dd-MMM-yyyy"); 1640d40e9d0SAdam Hornáček 1650d40e9d0SAdam Hornáček int revision2 = cfg.getIntParam("r2", -1) < 0 ? 0 : cfg.getIntParam("r2", -1); 1660d40e9d0SAdam Hornáček int revision1 = cfg.getIntParam("r1", -1) < revision2 ? revision2 + 1 : cfg.getIntParam("r1", -1); 1670d40e9d0SAdam Hornáček revision2 = revision2 >= hist.getHistoryEntries().size() ? hist.getHistoryEntries().size() - 1 : revision2; 1680d40e9d0SAdam Hornáček 1690d40e9d0SAdam Hornáček int start = cfg.getSearchStart(); 1700d40e9d0SAdam Hornáček int max = cfg.getSearchMaxItems(); 1710d40e9d0SAdam Hornáček%> 1720d40e9d0SAdam Hornáček<script type="text/javascript">/* <![CDATA[ */ 1730d40e9d0SAdam Hornáčekdocument.domReady.push(function() {domReadyHistory();}); 1740d40e9d0SAdam Hornáček/* ]]> */</script> 1750d40e9d0SAdam Hornáček<!--[if IE]> 1760d40e9d0SAdam Hornáček<style type="text/css"> 1770d40e9d0SAdam Hornáček table#revisions tbody tr td p { 1780d40e9d0SAdam Hornáček word-break: break-all; 1790d40e9d0SAdam Hornáček } 1800d40e9d0SAdam Hornáček</style> 1810d40e9d0SAdam Hornáček<![endif]--> 1820d40e9d0SAdam Hornáček<form action="<%= context + Prefix.DIFF_P + uriEncodedName %>"> 1830d40e9d0SAdam Hornáček<table class="src" id="revisions"> 1840d40e9d0SAdam Hornáček <thead> 1850d40e9d0SAdam Hornáček <tr> 1860d40e9d0SAdam Hornáček <th>Revision <% 1870d40e9d0SAdam Hornáček if (hist.hasTags()) { 1880d40e9d0SAdam Hornáček %><a href="#" onclick="javascript: toggle_revtags(); return false;"> 1890d40e9d0SAdam Hornáček <span class="revtags-hidden"> 1900d40e9d0SAdam Hornáček (<<< Hide revision tags)</span> 1910d40e9d0SAdam Hornáček <span class="revtags"> 1920d40e9d0SAdam Hornáček (Show revision tags >>>)</span></a><% 1930d40e9d0SAdam Hornáček } 1940d40e9d0SAdam Hornáček %></th><% 1950d40e9d0SAdam Hornáček if (!cfg.isDir()) { 1960d40e9d0SAdam Hornáček %> 1970d40e9d0SAdam Hornáček <th><input type="submit" value=" Compare "/> 1980d40e9d0SAdam Hornáček <% if (hist.getHistoryEntries().size() > revision1 && revision1 >= 0) { %> 1990d40e9d0SAdam Hornáček <input type="hidden" id="input_r1" name="r1" value="<%= path + '@' + hist.getHistoryEntries().get(revision1).getRevision() %>" /> 2000d40e9d0SAdam Hornáček <% } %> 2010d40e9d0SAdam Hornáček <% if (hist.getHistoryEntries().size() > revision2 && revision2 >= 0) { %> 2020d40e9d0SAdam Hornáček <input type="hidden" id="input_r2" name="r2" value="<%= path + '@' + hist.getHistoryEntries().get(revision2).getRevision() %>" /> 2030d40e9d0SAdam Hornáček <% } %> 2040d40e9d0SAdam Hornáček </th><% 2050d40e9d0SAdam Hornáček } 2060d40e9d0SAdam Hornáček %> 2070d40e9d0SAdam Hornáček <th>Date</th> 2080d40e9d0SAdam Hornáček <th>Author</th> 2090d40e9d0SAdam Hornáček <th>Comments <% 2100d40e9d0SAdam Hornáček if (hist.hasFileList()) { 2110d40e9d0SAdam Hornáček %><a href="#" onclick="javascript: toggle_filelist(); return false;"> 2120d40e9d0SAdam Hornáček <div class="filelist-hidden"> 2130d40e9d0SAdam Hornáček (<<< Hide modified files)</div> 2140d40e9d0SAdam Hornáček <div class="filelist"> 2150d40e9d0SAdam Hornáček (Show modified files >>>)</div></a><% 2160d40e9d0SAdam Hornáček } 2170d40e9d0SAdam Hornáček %> 2180d40e9d0SAdam Hornáček </th> 2190d40e9d0SAdam Hornáček </tr> 2200d40e9d0SAdam Hornáček </thead> 2210d40e9d0SAdam Hornáček <tbody> 2220d40e9d0SAdam Hornáček <% 2230d40e9d0SAdam Hornáček int count=0; 2240d40e9d0SAdam Hornáček for (HistoryEntry entry : hist.getHistoryEntries(max, start)) { 2250d40e9d0SAdam Hornáček String rev = entry.getRevision(); 2260d40e9d0SAdam Hornáček if (rev == null || rev.length() == 0) { 2270d40e9d0SAdam Hornáček rev = ""; 2280d40e9d0SAdam Hornáček } 2290d40e9d0SAdam Hornáček String tags = entry.getTags(); 2300d40e9d0SAdam Hornáček 2310d40e9d0SAdam Hornáček if (tags != null) { 2320d40e9d0SAdam Hornáček int colspan; 2330d40e9d0SAdam Hornáček if (cfg.isDir()) 2340d40e9d0SAdam Hornáček colspan = 4; 2350d40e9d0SAdam Hornáček else 2360d40e9d0SAdam Hornáček colspan = 5; 2370d40e9d0SAdam Hornáček %> 2380d40e9d0SAdam Hornáček <tr class="revtags-hidden"> 2390d40e9d0SAdam Hornáček <td colspan="<%= colspan %>" class="revtags"> 2400d40e9d0SAdam Hornáček <b>Revision tags:</b> <%= tags %> 2410d40e9d0SAdam Hornáček </td> 2420d40e9d0SAdam Hornáček </tr><tr style="display: none;"></tr><% 2430d40e9d0SAdam Hornáček } 2440d40e9d0SAdam Hornáček %> 2450d40e9d0SAdam Hornáček <tr><% 2460d40e9d0SAdam Hornáček if (cfg.isDir()) { 2470d40e9d0SAdam Hornáček %> 2480d40e9d0SAdam Hornáček <td><%= rev %></td><% 2490d40e9d0SAdam Hornáček } else { 2500d40e9d0SAdam Hornáček if (entry.isActive()) { 2510d40e9d0SAdam Hornáček StringBuffer urlBuffer = request.getRequestURL(); 2520d40e9d0SAdam Hornáček if (request.getQueryString() != null) { 2530d40e9d0SAdam Hornáček urlBuffer.append('?').append(request.getQueryString()); 2540d40e9d0SAdam Hornáček } 2550d40e9d0SAdam Hornáček urlBuffer.append('#').append(rev); 2560d40e9d0SAdam Hornáček %> 2570d40e9d0SAdam Hornáček <td><a href="<%= urlBuffer %>" 2580d40e9d0SAdam Hornáček title="link to revision line">#</a> 259*06988439SChris Fraire <a href="<%= context + Prefix.XREF_P + uriEncodedName + "?r=" + Util.URIEncode(rev) %>"><%= 2600d40e9d0SAdam Hornáček rev %></a></td> 2610d40e9d0SAdam Hornáček <td><% 2620d40e9d0SAdam Hornáček %><input type="radio" 2630d40e9d0SAdam Hornáček data-revision-1="<%= (start + count) %>" 2640d40e9d0SAdam Hornáček data-revision-2="<%= revision2 %>" 2650d40e9d0SAdam Hornáček data-diff-revision="r1" 2660d40e9d0SAdam Hornáček data-revision-path="<%= path + '@' + hist.getHistoryEntries().get(start + count).getRevision()%>" 2670d40e9d0SAdam Hornáček <% 2680d40e9d0SAdam Hornáček if (count + start > revision1 || (count + start > revision2 && count + start <= revision1 - 1)) { 2690d40e9d0SAdam Hornáček // revision1 enabled 2700d40e9d0SAdam Hornáček } else if (count + start == revision1 ) { 2710d40e9d0SAdam Hornáček // revision1 selected 2720d40e9d0SAdam Hornáček %> checked="checked"<% 2730d40e9d0SAdam Hornáček } else if( count + start <= revision2 ) { 2740d40e9d0SAdam Hornáček // revision1 disabled 2750d40e9d0SAdam Hornáček %> disabled="disabled" <% 2760d40e9d0SAdam Hornáček } 2770d40e9d0SAdam Hornáček %>/><% 2780d40e9d0SAdam Hornáček 2790d40e9d0SAdam Hornáček %><input type="radio" 2800d40e9d0SAdam Hornáček data-revision-1="<%= revision1 %>" 2810d40e9d0SAdam Hornáček data-revision-2="<%= (start + count) %>" 2820d40e9d0SAdam Hornáček data-diff-revision="r2" 2830d40e9d0SAdam Hornáček data-revision-path="<%= path + '@' + hist.getHistoryEntries().get(start + count).getRevision() %>" 2840d40e9d0SAdam Hornáček <% 2850d40e9d0SAdam Hornáček if( count + start < revision2 || (count + start > revision2 && count + start <= revision1 - 1) ) { 2860d40e9d0SAdam Hornáček // revision2 enabled 2870d40e9d0SAdam Hornáček } else if( count + start == revision2 ) { 2880d40e9d0SAdam Hornáček // revision2 selected 2890d40e9d0SAdam Hornáček %> checked="checked" <% 2900d40e9d0SAdam Hornáček } else if (count + start >= revision1 ) { 2910d40e9d0SAdam Hornáček // revision2 disabled 2920d40e9d0SAdam Hornáček %> disabled="disabled" <% 2930d40e9d0SAdam Hornáček } 2940d40e9d0SAdam Hornáček %>/><% 2950d40e9d0SAdam Hornáček %></td><% 2960d40e9d0SAdam Hornáček } else { 2970d40e9d0SAdam Hornáček striked = true; 2980d40e9d0SAdam Hornáček %> 2990d40e9d0SAdam Hornáček <td><del><%= rev %></del></td> 3000d40e9d0SAdam Hornáček <td></td><% 3010d40e9d0SAdam Hornáček } 3020d40e9d0SAdam Hornáček } 3030d40e9d0SAdam Hornáček %> 3040d40e9d0SAdam Hornáček <td><% 3050d40e9d0SAdam Hornáček Date date = entry.getDate(); 3060d40e9d0SAdam Hornáček if (date != null) { 3070d40e9d0SAdam Hornáček %><%= df.format(date) %><% 3080d40e9d0SAdam Hornáček } 3090d40e9d0SAdam Hornáček %></td> 3100d40e9d0SAdam Hornáček <td><% 3110d40e9d0SAdam Hornáček String author = entry.getAuthor(); 3120d40e9d0SAdam Hornáček if (author == null) { 3130d40e9d0SAdam Hornáček %>(no author)<% 3140d40e9d0SAdam Hornáček } else if (userPage != null && userPage.length() > 0) { 3150d40e9d0SAdam Hornáček String alink = Util.getEmail(author); 3160d40e9d0SAdam Hornáček %><a href="<%= userPage + Util.htmlize(alink) + userPageSuffix 3170d40e9d0SAdam Hornáček %>"><%= Util.htmlize(author)%></a><% 3180d40e9d0SAdam Hornáček } else { 3190d40e9d0SAdam Hornáček %><%= author %><% 3200d40e9d0SAdam Hornáček } 3210d40e9d0SAdam Hornáček %></td> 3220d40e9d0SAdam Hornáček <td><a name="<%= rev %>"></a><% 3230d40e9d0SAdam Hornáček // revision message collapse threshold minimum of 10 3240d40e9d0SAdam Hornáček int summaryLength = Math.max(10, cfg.getRevisionMessageCollapseThreshold()); 3250d40e9d0SAdam Hornáček String cout = Util.htmlize(entry.getMessage()); 3260d40e9d0SAdam Hornáček 3270d40e9d0SAdam Hornáček if (bugPage != null && bugPage.length() > 0) { 3280d40e9d0SAdam Hornáček cout = Util.linkifyPattern(cout, bugPattern, "$1", Util.completeUrl(bugPage + "$1", request)); 3290d40e9d0SAdam Hornáček } 3300d40e9d0SAdam Hornáček if (reviewPage != null && reviewPage.length() > 0) { 3310d40e9d0SAdam Hornáček cout = Util.linkifyPattern(cout, reviewPattern, "$1", Util.completeUrl(reviewPage + "$1", request)); 3320d40e9d0SAdam Hornáček } 3330d40e9d0SAdam Hornáček 3340d40e9d0SAdam Hornáček boolean showSummary = false; 3350d40e9d0SAdam Hornáček String coutSummary = entry.getMessage(); 3360d40e9d0SAdam Hornáček if (coutSummary.length() > summaryLength) { 3370d40e9d0SAdam Hornáček showSummary = true; 3380d40e9d0SAdam Hornáček coutSummary = coutSummary.substring(0, summaryLength - 1); 3390d40e9d0SAdam Hornáček coutSummary = Util.htmlize(coutSummary); 3400d40e9d0SAdam Hornáček if (bugPage != null && bugPage.length() > 0) { 3410d40e9d0SAdam Hornáček coutSummary = Util.linkifyPattern(coutSummary, bugPattern, "$1", Util.completeUrl(bugPage + "$1", request)); 3420d40e9d0SAdam Hornáček } 3430d40e9d0SAdam Hornáček if (reviewPage != null && reviewPage.length() > 0) { 3440d40e9d0SAdam Hornáček coutSummary = Util.linkifyPattern(coutSummary, reviewPattern, "$1", Util.completeUrl(reviewPage + "$1", request)); 3450d40e9d0SAdam Hornáček } 3460d40e9d0SAdam Hornáček } 3470d40e9d0SAdam Hornáček 3480d40e9d0SAdam Hornáček if (showSummary) { 3490d40e9d0SAdam Hornáček %> 3500d40e9d0SAdam Hornáček <p class="rev-message-summary"><%= coutSummary %></p> 3510d40e9d0SAdam Hornáček <p class="rev-message-full rev-message-hidden"><%= cout %></p> 3520d40e9d0SAdam Hornáček <p class="rev-message-toggle" data-toggle-state="less"><a class="rev-toggle-a" href="#">show more ... </a></p> 3530d40e9d0SAdam Hornáček <% 3540d40e9d0SAdam Hornáček } 3550d40e9d0SAdam Hornáček else { 3560d40e9d0SAdam Hornáček %><p class="rev-message-full"><%= cout %></p><% 3570d40e9d0SAdam Hornáček } 3580d40e9d0SAdam Hornáček 3590d40e9d0SAdam Hornáček Set<String> files = entry.getFiles(); 3600d40e9d0SAdam Hornáček if (files != null) { 3610d40e9d0SAdam Hornáček %><div class="filelist-hidden"><br/><% 3620d40e9d0SAdam Hornáček for (String ifile : files) { 3630d40e9d0SAdam Hornáček String jfile = Util.stripPathPrefix(path, ifile); 364*06988439SChris Fraire if (Objects.equals(rev, "")) { 3650d40e9d0SAdam Hornáček %> 3660d40e9d0SAdam Hornáček<a class="h" href="<%= context + Prefix.XREF_P + ifile %>"><%= jfile %></a><br/><% 3670d40e9d0SAdam Hornáček } else { 3680d40e9d0SAdam Hornáček %> 3690d40e9d0SAdam Hornáček<a class="h" href="<%= context + Prefix.XREF_P + ifile %>?r=<%= rev %>"><%= jfile %></a><br/><% 3700d40e9d0SAdam Hornáček } 3710d40e9d0SAdam Hornáček } 3720d40e9d0SAdam Hornáček %></div><% 3730d40e9d0SAdam Hornáček } 3740d40e9d0SAdam Hornáček %></td> 3750d40e9d0SAdam Hornáček </tr><% 3760d40e9d0SAdam Hornáček count++; 3770d40e9d0SAdam Hornáček } 3780d40e9d0SAdam Hornáček %> 3790d40e9d0SAdam Hornáček </tbody> 3800d40e9d0SAdam Hornáček <tfoot> 3810d40e9d0SAdam Hornáček <tr> 3820d40e9d0SAdam Hornáček <td colspan="5"> 3830d40e9d0SAdam Hornáček<% 384*06988439SChris Fraire String slider; 3850d40e9d0SAdam Hornáček if ((slider = (String) request.getAttribute("history.jsp-slider")) != null) { 3860d40e9d0SAdam Hornáček // NOTE: shouldn't happen that it doesn't have this attribute 3870d40e9d0SAdam Hornáček %><p class="slider"><%= slider %></p><% 3880d40e9d0SAdam Hornáček } 3890d40e9d0SAdam Hornáček%> 3900d40e9d0SAdam Hornáček </td> 3910d40e9d0SAdam Hornáček </tr> 3920d40e9d0SAdam Hornáček </tfoot> 3930d40e9d0SAdam Hornáček</table> 3940d40e9d0SAdam Hornáček 3950d40e9d0SAdam Hornáček</form><% 3960d40e9d0SAdam Hornáček if (striked) { 3970d40e9d0SAdam Hornáček%><p><b>Note:</b> No associated file changes are available for 3980d40e9d0SAdam Hornáčekrevisions with strike-through numbers (eg. <del>1.45</del>)</p><% 3990d40e9d0SAdam Hornáček } 4000d40e9d0SAdam Hornáček%> 4010d40e9d0SAdam Hornáček<p class="rssbadge"><a href="<%=context + Prefix.RSS_P + uriEncodedName 4020d40e9d0SAdam Hornáček%>" title="RSS XML Feed of latest changes"><span id="rssi"></span></a></p> 4030d40e9d0SAdam Hornáček 4040d40e9d0SAdam Hornáček<% 4050d40e9d0SAdam Hornáček 4060d40e9d0SAdam Hornáček } 4070d40e9d0SAdam Hornáček} 4080d40e9d0SAdam Hornáček/* ---------------------- history.jsp end --------------------- */ 4090d40e9d0SAdam Hornáček%><%@ 4100d40e9d0SAdam Hornáček 4110d40e9d0SAdam Hornáčekinclude file="foot.jspf" 4120d40e9d0SAdam Hornáček 4130d40e9d0SAdam Hornáček%> 414