Add mailto link to the display name above comments - fixes #112

Fri, 18 Dec 2020 16:16:54 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 18 Dec 2020 16:16:54 +0100
changeset 165
b1fc8aed5969
parent 164
003b08bb3f25
child 166
6eede6088d41

Add mailto link to the display name above comments - fixes #112

src/main/webapp/WEB-INF/jsp/issue-view.jsp file | annotate | diff | comparison | revisions
--- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp	Fri Dec 18 16:09:20 2020 +0100
+++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp	Fri Dec 18 16:16:54 2020 +0100
@@ -173,7 +173,13 @@
         <div class="comment">
             <div class="caption">
                 <c:if test="${not empty comment.author}">
+                    <c:if test="${not empty comment.author.mail}">
+                        <a href="mailto:${comment.author.mail}">
+                    </c:if>
                     <c:out value="${comment.author.displayname}"/>
+                    <c:if test="${not empty comment.author.mail}">
+                        </a>
+                    </c:if>
                 </c:if>
                 <c:if test="${empty comment.author}">
                     <fmt:message key="issue.comments.anonauthor"/>

mercurial