--- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp Thu Aug 12 20:03:04 2021 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp Wed Aug 18 12:47:32 2021 +0200 @@ -27,6 +27,7 @@ <%@page pageEncoding="UTF-8" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueDetailView" scope="request"/> @@ -152,7 +153,12 @@ </div> <hr class="comments-separator"/> -<h2><fmt:message key="issue.comments"/></h2> +<h2> + <fmt:message key="issue.comments"/> + <c:if test="${not empty viewmodel.comments}"> + (${fn:length(viewmodel.comments)}) + </c:if> +</h2> <c:if test="${viewmodel.issue.id ge 0}"> <form id="comment-form" action="${issuesHref}${issue.id}/comment" method="post"> <table class="formtable fullwidth">