src/main/webapp/WEB-INF/jsp/issue-view.jsp

Mon, 09 Aug 2021 16:25:50 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 09 Aug 2021 16:25:50 +0200
changeset 215
028792eda9b7
parent 214
69647ddb57f2
child 224
da975b1f188d
permissions
-rw-r--r--

#156 fixes auto-selection overriding issue data

75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <%--
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3
180
009700915269 merge resource bundles
Mike Becker <universe@uap-core.de>
parents: 165
diff changeset
4 Copyright 2021 Mike Becker. All rights reserved.
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 Redistribution and use in source and binary forms, with or without
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 modification, are permitted provided that the following conditions are met:
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 1. Redistributions of source code must retain the above copyright
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 notice, this list of conditions and the following disclaimer.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 2. Redistributions in binary form must reproduce the above copyright
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 notice, this list of conditions and the following disclaimer in the
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 documentation and/or other materials provided with the distribution.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 --%>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 <%@page pageEncoding="UTF-8" %>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueDetailView" scope="request"/>
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
32
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
33 <c:set var="project" scope="page" value="${viewmodel.project}"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
34 <c:set var="component" scope="page" value="${viewmodel.component}"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
35 <c:set var="version" scope="page" value="${viewmodel.version}"/>
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents: 85
diff changeset
36 <c:set var="issue" scope="page" value="${viewmodel.issue}" />
75
33b6843fdf8a adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
38 <c:set var="issuesHref" scope="page" value="./projects/${project.node}/issues/${empty version ? '-' : version.node }/${empty component ? '-' : component.node}/"/>
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
39
212
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
40 <table class="issue-view fullwidth">
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
41 <colgroup>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
42 <col>
212
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
43 <col style="width: 50%">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
44 <col>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
45 <col style="width: 50%">
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
46 </colgroup>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
47 <tbody>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
48 <tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
49 <th><fmt:message key="issue.id"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
50 <td>${issue.id}</td>
212
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
51 <td colspan="2"></td>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
52 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
53 <tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
54 <th><fmt:message key="issue.created"/></th>
156
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
55 <td>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
56 <c:set var="dateValue" value="${issue.created}"/>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
57 <%@include file="../jspf/date-with-tooltip.jspf"%>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
58 </td>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
59 <th><fmt:message key="issue.updated"/></th>
156
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
60 <td>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
61 <c:set var="dateValue" value="${issue.updated}"/>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
62 <%@include file="../jspf/date-with-tooltip.jspf"%>
c5d6820d884e fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents: 150
diff changeset
63 </td>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
64 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
65 <tr>
212
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
66 <th><fmt:message key="project"/></th>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
67 <td>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
68 <c:out value="${issue.project.name}" />
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
69 </td>
181
502a10e24b85 renames several resource keys
Mike Becker <universe@uap-core.de>
parents: 180
diff changeset
70 <th><fmt:message key="component"/></th>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
71 <td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
72 <c:if test="${not empty issue.component}">
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
73 <c:out value="${issue.component.name}"/>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
74 </c:if>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
75 <c:if test="${empty issue.component}">
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
76 <fmt:message key="placeholder.null-component"/>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
77 </c:if>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
78 </td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
79 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
80 <tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
81 <th><fmt:message key="issue.category"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
82 <td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
83 <div class="issue-tag ${issue.category}" style="width: auto">
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
84 <fmt:message key="issue.category.${issue.category}" />
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
85 </div>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
86 </td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
87 <th><fmt:message key="issue.status"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
88 <td>
150
822b7e3d064d migrate entities package
Mike Becker <universe@uap-core.de>
parents: 146
diff changeset
89 <div class="issue-tag phase-${issue.status.phase.number}" style="width: auto">
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
90 <fmt:message key="issue.status.${issue.status}" />
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
91 </div>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
92 </td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
93 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
94 <tr>
212
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
95 <th><fmt:message key="issue.resolved-versions"/></th>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
96 <td>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
97 <c:forEach var="version" items="${issue.resolvedVersions}">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
98 <c:out value="${version.name}"/>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
99 </c:forEach>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
100 </td>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
101 <th><fmt:message key="issue.affected-versions"/></th>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
102 <td>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
103 <c:forEach var="version" items="${issue.affectedVersions}">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
104 <c:out value="${version.name}"/>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
105 </c:forEach>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
106 </td>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
107 </tr>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
108 </tbody>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
109 </table>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
110 <table class="issue-view fullwidth">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
111 <colgroup>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
112 <col>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
113 <col style="width: 100%">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
114 </colgroup>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
115 <tbody>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
116 <tr>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
117 <th><fmt:message key="issue.subject"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
118 <td><c:out value="${issue.subject}"/></td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
119 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
120 <tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
121 <th class="vtop"><fmt:message key="issue.description"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
122 <td>
162
2adc8623dd89 enables markdown support in issue descriptions and comments - fixes #10
Mike Becker <universe@uap-core.de>
parents: 156
diff changeset
123 <div class="markdown-styled">
2adc8623dd89 enables markdown support in issue descriptions and comments - fixes #10
Mike Becker <universe@uap-core.de>
parents: 156
diff changeset
124 ${issue.description}
2adc8623dd89 enables markdown support in issue descriptions and comments - fixes #10
Mike Becker <universe@uap-core.de>
parents: 156
diff changeset
125 </div>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
126 </td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
127 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
128 <tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
129 <th><fmt:message key="issue.assignee"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
130 <td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
131 <c:if test="${not empty issue.assignee}">
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
132 <c:out value="${issue.assignee.displayname}"/>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
133 </c:if>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
134 <c:if test="${empty issue.assignee}">
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
135 <fmt:message key="placeholder.null-assignee" />
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
136 </c:if>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
137 </td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
138 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
139 <tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
140 <th><fmt:message key="issue.eta"/></th>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
141 <td><fmt:formatDate value="${issue.eta}" /></td>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
142 </tr>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
143 </tbody>
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
144 </table>
212
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
145 <div class="hright">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
146 <a href="${issuesHref}" class="button">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
147 <fmt:message key="button.back"/>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
148 </a>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
149 <a href="${issuesHref}${issue.id}/edit" class="button submit">
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
150 <fmt:message key="button.issue.edit"/>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
151 </a>
c50da26a6d31 #154 improves issue view
Mike Becker <universe@uap-core.de>
parents: 207
diff changeset
152 </div>
146
b0e83cab0bde adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents: 142
diff changeset
153
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
154 <hr class="comments-separator"/>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
155 <h2><fmt:message key="issue.comments"/></h2>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
156 <c:if test="${viewmodel.issue.id ge 0}">
184
e8eecee6aadf completes kotlin migration
Mike Becker <universe@uap-core.de>
parents: 181
diff changeset
157 <form id="comment-form" action="${issuesHref}${issue.id}/comment" method="post">
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
158 <table class="formtable fullwidth">
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
159 <tbody>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
160 <tr>
214
69647ddb57f2 #153 adds comment box to issues form
Mike Becker <universe@uap-core.de>
parents: 212
diff changeset
161 <td><textarea rows="3" name="comment" required></textarea></td>
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
162 </tr>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
163 </tbody>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
164 <tfoot>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
165 <tr>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
166 <td>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
167 <button type="submit"><fmt:message key="button.comment"/></button>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
168 </td>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
169 </tr>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
170 </tfoot>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
171 </table>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
172 </form>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
173 <c:forEach var="comment" items="${viewmodel.comments}">
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
174 <div class="comment">
207
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
175 <div class="comment-author">
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
176 <c:if test="${not empty comment.author}">
165
b1fc8aed5969 Add mailto link to the display name above comments - fixes #112
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
177 <c:if test="${not empty comment.author.mail}">
207
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
178 <a class="comment-author-name" href="mailto:${comment.author.mail}">
165
b1fc8aed5969 Add mailto link to the display name above comments - fixes #112
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
179 </c:if>
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
180 <c:out value="${comment.author.displayname}"/>
165
b1fc8aed5969 Add mailto link to the display name above comments - fixes #112
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
181 <c:if test="${not empty comment.author.mail}">
b1fc8aed5969 Add mailto link to the display name above comments - fixes #112
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
182 </a>
b1fc8aed5969 Add mailto link to the display name above comments - fixes #112
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
183 </c:if>
207
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
184 <c:if test="${comment.author.username eq pageContext.request.remoteUser}">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
185 <a class="comment-edit-icon" onclick="showCommentEditor(${comment.id})">&#x270e;</a>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
186 </c:if>
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
187 </c:if>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
188 <c:if test="${empty comment.author}">
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
189 <fmt:message key="issue.comments.anonauthor"/>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
190 </c:if>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
191 </div>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
192 <div class="smalltext">
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
193 <fmt:formatDate type="BOTH" value="${comment.created}" />
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
194 <c:if test="${comment.updateCount gt 0}">
207
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
195 <span class="comment-edit-info">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
196 (<fmt:message key="issue.comments.lastupdate"/> <fmt:formatDate type="BOTH" value="${comment.updated}" />, ${comment.updateCount} <fmt:message key="issue.comments.updateCount"/>)
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
197 </span>
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
198 </c:if>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
199 </div>
207
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
200 <div id="comment-view-${comment.id}" class="medskip markdown-styled">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
201 ${comment.commentFormatted}
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
202 </div>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
203 <div id="comment-editor-${comment.id}" style="display: none">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
204 <form id="comment-form-${comment.id}" action="${issuesHref}${issue.id}/comment" method="post">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
205 <input type="hidden" name="commentid" value="${comment.id}">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
206 <table class="formtable fullwidth">
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
207 <tbody>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
208 <tr>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
209 <td>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
210 <textarea rows="5" name="comment" required><c:out value="${comment.comment}"/></textarea>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
211 </td>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
212 </tr>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
213 </tbody>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
214 <tfoot>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
215 <tr>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
216 <td>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
217 <button type="submit"><fmt:message key="button.comment.edit"/></button>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
218 </td>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
219 </tr>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
220 </tfoot>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
221 </table>
479dd7993ef9 #22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents: 184
diff changeset
222 </form>
124
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
223 </div>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
224 </div>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
225 </c:forEach>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
226 </c:if>
ed2e7aef2a3e adds issue comments
Mike Becker <universe@uap-core.de>
parents: 115
diff changeset
227

mercurial