Zemian Deng avatar Zemian Deng committed 8cab404

Added Help menu link.
Added helpful hint to enable event history when record count is zero.
Show user services list only if count > 0.

Comments (0)

Files changed (3)

timemachine-web/src/main/webapp/header.inc

 	<li><a href="${ pageContext.request.contextPath }/services">Services</a></li>
 	<li><a href="${ pageContext.request.contextPath }/config">Config</a></li>
 	<li><a href="${ pageContext.request.contextPath }/console">Console</a></li>
+	<li><a href="https://bitbucket.org/timemachine/scheduler/wiki/WebConsole">Help</a></li>
 </ul>
 
 <div>

timemachine-web/src/main/webapp/histories.jsp

 <%@ include file="header.inc" %>
 
 <h2>Scheduler Event Histories</h2>
-<p>There are ${ fn:length(eventHistories) } events found.</p>
+
+<c:choose>
+<c:when test="${ fn:length(eventHistories) <= 0 }">
+<p>There is no history event found.</p>
+<p>NOTE: This feature is disabled by default. To see history events, ensure you have enable this feature in scheduler 
+configuration.</p>
+</c:when><c:otherwise>
+<p>There are ${ fn:length(eventHistories) } history events found.</p>
 <table>
 	<thead>
 	<tr>
 	</c:forEach>
 	</tbody>
 </table>
+</c:otherwise>
+</c:choose>
 
 <%@ include file="footer.inc" %>

timemachine-web/src/main/webapp/services.jsp

 	</tbody>
 </table>
 
+<c:if test="${ not empty userServices }">
 <h2>Scheduler User Services</h2>
 <table>
 	<thead>
 	</c:forEach>
 	</tbody>
 </table>
+</c:if>
 
 <%@ include file="footer.inc" %>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.