Wed, 18 Aug 2021 12:47:32 +0200
#158 adds total number of comments
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Thu Aug 12 20:03:04 2021 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Wed Aug 18 12:47:32 2021 +0200 @@ -27,6 +27,7 @@ <h3>Version 1.0 (Vorschau)</h3> <ul> + <li>Gesamtanzahl der Kommentare wird nun angezeigt.</li> <li>Spalte für zugewiesener Entwickler zu den Vorgangstabellen hinzugefügt.</li> <li>Installationsanweisungen hinzugefügt.</li> </ul>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf Thu Aug 12 20:03:04 2021 +0200 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Wed Aug 18 12:47:32 2021 +0200 @@ -27,6 +27,7 @@ <h3>Version 1.0 (snapshot)</h3> <ul> + <li>Adds the total number of comments to the caption.</li> <li>Adds assignee to the issue overview tables.</li> <li>Adds install instructions.</li> </ul>
--- 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">