Change header template for a new version
[jabaws.git] / statpages / MonthlySummary.jsp
index d69db5a..727c626 100644 (file)
@@ -37,7 +37,17 @@ Date: May 2011
        </c:otherwise>\r
 </c:choose>\r
 \r
-<td><a title="Click to view the detailed statistics for the period" href="DisplayStat?datetime=${monthTotal.key.time}"><fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/></a></td>\r
+<td>\r
+<c:choose>\r
+<c:when test="${isAdmin}">\r
+  <a title="Click to view the detailed statistics for the period" href="DisplayStat?datetime=${monthTotal.key.time}"><fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/></a>\r
+</c:when>\r
+<c:otherwise>\r
+   <fmt:formatDate value="${monthTotal.key}" type="date" pattern="MMM yyyy"/>\r
+</c:otherwise>\r
+</c:choose>\r
+\r
+</td>\r
 <td>${monthTotal.value.total}</td>\r
 <td>${monthTotal.value.incomplete}</td>\r
 <td>${monthTotal.value.cancelled}</td>\r
@@ -70,5 +80,9 @@ For each month the table contains the following information.
 </ul>\r
 The summary for each column is displayed in the last row of the table.\r
 </div> <!-- Help text enclosing dev end -->\r
+<c:if test="${!isAdmin}">\r
+<br/><p><a href="AnnualStat">Please login as administrator</a> to view the detailed statistics (<a href=man_stats.html#helpUsageStats>help</a>)</p>\r
+</c:if>\r
+\r
 </div> <!-- page enclosing div end -->\r
 <jsp:include page="footer.jsp" />
\ No newline at end of file