Sun, 06 Oct 2024 18:25:16 +0200
fix "more" checkbox not staying checked (for real now) - fixes #417
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 | 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" %> |
224
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
30 | <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
75
33b6843fdf8a
adds the ability to create and edit issues
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
31 | |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
32 | <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
|
33 | |
311
bf67e0ff7131
add new global issues page - fixes #404
Mike Becker <universe@uap-core.de>
parents:
292
diff
changeset
|
34 | <c:set var="project" scope="page" value="${viewmodel.issue.project}"/> |
86
0a658e53177c
improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
85
diff
changeset
|
35 | <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
|
36 | |
311
bf67e0ff7131
add new global issues page - fixes #404
Mike Becker <universe@uap-core.de>
parents:
292
diff
changeset
|
37 | <c:set var="issuesHref" value="./issues/"/> |
bf67e0ff7131
add new global issues page - fixes #404
Mike Becker <universe@uap-core.de>
parents:
292
diff
changeset
|
38 | <c:if test="${not empty viewmodel.pathInfos}"> |
bf67e0ff7131
add new global issues page - fixes #404
Mike Becker <universe@uap-core.de>
parents:
292
diff
changeset
|
39 | <c:set var="issuesHref" value="./${viewmodel.pathInfos.issuesHref}"/> |
bf67e0ff7131
add new global issues page - fixes #404
Mike Becker <universe@uap-core.de>
parents:
292
diff
changeset
|
40 | </c:if> |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
181
diff
changeset
|
41 | |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
42 | <table class="issue-view fullwidth"> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
43 | <colgroup> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
44 | <col> |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
45 | <col style="width: 50%"> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
46 | <col> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
47 | <col style="width: 50%"> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
48 | </colgroup> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
49 | <tbody> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
50 | <tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
51 | <th><fmt:message key="issue.id"/></th> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
52 | <td>${issue.id}</td> |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
53 | <td colspan="2"></td> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
54 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
55 | <tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
56 | <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
|
57 | <td> |
c5d6820d884e
fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents:
150
diff
changeset
|
58 | <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
|
59 | <%@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
|
60 | </td> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
61 | <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
|
62 | <td> |
c5d6820d884e
fixes #33 - display time tooltip for created/update dates
Mike Becker <universe@uap-core.de>
parents:
150
diff
changeset
|
63 | <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
|
64 | <%@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
|
65 | </td> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
66 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
67 | <tr> |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
68 | <th><fmt:message key="project"/></th> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
69 | <td> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
70 | <c:out value="${issue.project.name}" /> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
71 | </td> |
181
502a10e24b85
renames several resource keys
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
72 | <th><fmt:message key="component"/></th> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
73 | <td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
74 | <c:if test="${not empty issue.component}"> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
75 | <c:out value="${issue.component.name}"/> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
76 | </c:if> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
77 | <c:if test="${empty issue.component}"> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
78 | <fmt:message key="placeholder.null-component"/> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
79 | </c:if> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
80 | </td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
81 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
82 | <tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
83 | <th><fmt:message key="issue.category"/></th> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
84 | <td> |
230
95b419e054fa
changes how form elements are stretched to 100% width
Mike Becker <universe@uap-core.de>
parents:
226
diff
changeset
|
85 | <div class="issue-tag ${issue.category}"> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
86 | <fmt:message key="issue.category.${issue.category}" /> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
87 | </div> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
88 | </td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
89 | <th><fmt:message key="issue.status"/></th> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
90 | <td> |
230
95b419e054fa
changes how form elements are stretched to 100% width
Mike Becker <universe@uap-core.de>
parents:
226
diff
changeset
|
91 | <div class="issue-tag phase-${issue.status.phase.number}"> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
92 | <fmt:message key="issue.status.${issue.status}" /> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
93 | </div> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
94 | </td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
95 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
96 | <tr> |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
97 | <th><fmt:message key="issue.resolved-versions"/></th> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
98 | <td> |
231
dcb1d5a7ea3a
#163 removes multi selection for versions
Mike Becker <universe@uap-core.de>
parents:
230
diff
changeset
|
99 | <c:out value="${issue.resolved.name}"/> |
212
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> |
231
dcb1d5a7ea3a
#163 removes multi selection for versions
Mike Becker <universe@uap-core.de>
parents:
230
diff
changeset
|
103 | <c:out value="${issue.affected.name}"/> |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
104 | </td> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
105 | </tr> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
106 | </tbody> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
107 | </table> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
108 | <table class="issue-view fullwidth"> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
109 | <colgroup> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
110 | <col> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
111 | <col style="width: 100%"> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
112 | </colgroup> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
113 | <tbody> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
114 | <tr> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
115 | <th><fmt:message key="issue.subject"/></th> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
116 | <td><c:out value="${issue.subject}"/></td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
117 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
118 | <tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
119 | <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
|
120 | <td> |
162
2adc8623dd89
enables markdown support in issue descriptions and comments - fixes #10
Mike Becker <universe@uap-core.de>
parents:
156
diff
changeset
|
121 | <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
|
122 | ${issue.description} |
2adc8623dd89
enables markdown support in issue descriptions and comments - fixes #10
Mike Becker <universe@uap-core.de>
parents:
156
diff
changeset
|
123 | </div> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
124 | </td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
125 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
126 | <tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
127 | <th><fmt:message key="issue.assignee"/></th> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
128 | <td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
129 | <c:if test="${not empty issue.assignee}"> |
226
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
130 | <c:if test="${not empty issue.assignee.mail}"> |
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
131 | <a href="mailto:<c:out value="${issue.assignee.mail}"/>"> |
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
132 | <c:out value="${issue.assignee.displayname}"/> |
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
133 | </a> |
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
134 | </c:if> |
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
135 | <c:if test="${empty issue.assignee.mail}"> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
136 | <c:out value="${issue.assignee.displayname}"/> |
226
c8e1b5282f69
adds mailto link to issue-view.jsp
Mike Becker <universe@uap-core.de>
parents:
224
diff
changeset
|
137 | </c:if> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
138 | </c:if> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
139 | <c:if test="${empty issue.assignee}"> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
140 | <fmt:message key="placeholder.null-assignee" /> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
141 | </c:if> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
142 | </td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
143 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
144 | <tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
145 | <th><fmt:message key="issue.eta"/></th> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
146 | <td><fmt:formatDate value="${issue.eta}" /></td> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
147 | </tr> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
148 | </tbody> |
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
149 | </table> |
212
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
150 | <div class="hright"> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
151 | <a href="${issuesHref}" class="button"> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
152 | <fmt:message key="button.back"/> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
153 | </a> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
154 | <a href="${issuesHref}${issue.id}/edit" class="button submit"> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
155 | <fmt:message key="button.issue.edit"/> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
156 | </a> |
c50da26a6d31
#154 improves issue view
Mike Becker <universe@uap-core.de>
parents:
207
diff
changeset
|
157 | </div> |
146
b0e83cab0bde
adds issue detail view - fixes #24
Mike Becker <universe@uap-core.de>
parents:
142
diff
changeset
|
158 | |
263
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
159 | <hr class="issue-view-separator"/> |
284
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
160 | |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
161 | <c:if test="${not empty viewmodel.commitLinks}"> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
162 | <h2><fmt:message key="issue.commits" /></h2> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
163 | <table class="issue-view fullwidth"> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
164 | <colgroup> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
165 | <col> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
166 | <col class="fullwidth"> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
167 | </colgroup> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
168 | <thead> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
169 | <tr> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
170 | <th><fmt:message key="issue.commits.hash"/></th> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
171 | <th><fmt:message key="issue.commits.message"/></th> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
172 | </tr> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
173 | </thead> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
174 | <tbody> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
175 | <c:forEach var="commitLink" items="${viewmodel.commitLinks}"> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
176 | <tr> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
177 | <td><a href="${commitLink.url}" target="_blank">${commitLink.hash}</a></td> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
178 | <td><c:out value="${commitLink.message}"/> </td> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
179 | </tr> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
180 | </c:forEach> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
181 | </tbody> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
182 | </table> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
183 | </c:if> |
671c1c8fbf1c
add full support for commit references - fixes #276
Mike Becker <universe@uap-core.de>
parents:
269
diff
changeset
|
184 | |
263
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
185 | <h2> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
186 | <fmt:message key="issue.relations"/> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
187 | </h2> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
188 | <form id="relation-form" action="${issuesHref}${issue.id}/relation" method="post"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
189 | <c:if test="${not empty viewmodel.relationError}"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
190 | <div class="error-box"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
191 | <fmt:message key="${viewmodel.relationError}"/> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
192 | </div> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
193 | </c:if> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
194 | <table class="issue-view relation-editor fullwidth"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
195 | <colgroup> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
196 | <col> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
197 | <col> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
198 | <col class="fullwidth"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
199 | </colgroup> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
200 | <thead> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
201 | <tr> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
202 | <th></th> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
203 | <th><fmt:message key="issue.relations.type"/></th> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
204 | <th><fmt:message key="issue.relations.issue"/></th> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
205 | </tr> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
206 | </thead> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
207 | <tbody> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
208 | <tr> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
209 | <td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
210 | <button type="submit"><fmt:message key="button.add"/></button> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
211 | </td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
212 | <td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
213 | <select name="type"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
214 | <c:forEach var="type" items="${viewmodel.relationTypes}"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
215 | <option value="${type}"><fmt:message key="issue.relations.type.${type}"/></option> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
216 | <c:if test="${not type.bidi}"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
217 | <option value="!${type}"><fmt:message key="issue.relations.type.${type}.rev"/></option> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
218 | </c:if> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
219 | </c:forEach> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
220 | </select> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
221 | </td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
222 | <td> |
264
7d67245e5121
disable autocomplete for issue relations
Mike Becker <universe@uap-core.de>
parents:
263
diff
changeset
|
223 | <input name="issue" list="linkable-issues" autocomplete="off"> |
263
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
224 | <datalist id="linkable-issues"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
225 | <c:forEach var="linkableIssue" items="${viewmodel.linkableIssues}"> |
329
fa7696bafe0d
add issue status to suggestions for adding relations - resolves #450
Mike Becker <universe@uap-core.de>
parents:
311
diff
changeset
|
226 | <option value="#${linkableIssue.id} - <c:out value="${linkableIssue.subject}"/> (<fmt:message key="issue.category.${linkableIssue.category}" /> | <fmt:message key="issue.status.${linkableIssue.status}" />)"></option> |
263
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
227 | </c:forEach> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
228 | </datalist> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
229 | </td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
230 | </tr> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
231 | <c:forEach var="relation" items="${viewmodel.currentRelations}"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
232 | <tr> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
233 | <td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
234 | <a href="${issuesHref}${issue.id}/removeRelation?to=${relation.to.id}&type=${relation.type}&reverse=${relation.reverse}" class="button submit"> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
235 | <fmt:message key="button.remove"/> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
236 | </a> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
237 | </td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
238 | <td><fmt:message key="issue.relations.type.${relation.type}${relation.reverse?'.rev':''}"/></td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
239 | <td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
240 | <a href="${issuesHref}${relation.to.id}"> |
269
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
241 | #${relation.to.id} - <c:out value="${relation.to.subject}"/> |
263
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
242 | </a> |
269
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
243 | <div style="display: inline-block; width: .25em"></div> |
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
244 | <div class="issue-tag ${relation.to.category}"> |
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
245 | <fmt:message key="issue.category.${relation.to.category}" /> |
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
246 | </div> |
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
247 | <div class="issue-tag phase-${relation.to.status.phase.number}"> |
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
248 | <fmt:message key="issue.status.${relation.to.status}" /> |
8646c229bd32
improve display of relations
Mike Becker <universe@uap-core.de>
parents:
264
diff
changeset
|
249 | </div> |
263
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
250 | </td> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
251 | </tr> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
252 | </c:forEach> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
253 | </tbody> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
254 | </table> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
255 | </form> |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
256 | |
aa22103809cd
#29 add possibility to relate issues
Mike Becker <universe@uap-core.de>
parents:
231
diff
changeset
|
257 | <hr class="issue-view-separator"/> |
224
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
258 | <h2> |
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
259 | <fmt:message key="issue.comments"/> |
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
260 | <c:if test="${not empty viewmodel.comments}"> |
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
261 | (${fn:length(viewmodel.comments)}) |
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
262 | </c:if> |
da975b1f188d
#158 adds total number of comments
Mike Becker <universe@uap-core.de>
parents:
214
diff
changeset
|
263 | </h2> |
124 | 264 | <c:if test="${viewmodel.issue.id ge 0}"> |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
181
diff
changeset
|
265 | <form id="comment-form" action="${issuesHref}${issue.id}/comment" method="post"> |
124 | 266 | <table class="formtable fullwidth"> |
267 | <tbody> | |
268 | <tr> | |
214
69647ddb57f2
#153 adds comment box to issues form
Mike Becker <universe@uap-core.de>
parents:
212
diff
changeset
|
269 | <td><textarea rows="3" name="comment" required></textarea></td> |
124 | 270 | </tr> |
271 | </tbody> | |
272 | <tfoot> | |
273 | <tr> | |
274 | <td> | |
275 | <button type="submit"><fmt:message key="button.comment"/></button> | |
276 | </td> | |
277 | </tr> | |
278 | </tfoot> | |
279 | </table> | |
280 | </form> | |
281 | <c:forEach var="comment" items="${viewmodel.comments}"> | |
282 | <div class="comment"> | |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
283 | <div class="comment-author"> |
124 | 284 | <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
|
285 | <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
|
286 | <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
|
287 | </c:if> |
124 | 288 | <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
|
289 | <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
|
290 | </a> |
b1fc8aed5969
Add mailto link to the display name above comments - fixes #112
Mike Becker <universe@uap-core.de>
parents:
162
diff
changeset
|
291 | </c:if> |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
292 | <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
|
293 | <a class="comment-edit-icon" onclick="showCommentEditor(${comment.id})">✎</a> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
294 | </c:if> |
124 | 295 | </c:if> |
296 | <c:if test="${empty comment.author}"> | |
297 | <fmt:message key="issue.comments.anonauthor"/> | |
298 | </c:if> | |
299 | </div> | |
300 | <div class="smalltext"> | |
301 | <fmt:formatDate type="BOTH" value="${comment.created}" /> | |
302 | <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
|
303 | <span class="comment-edit-info"> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
304 | (<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
|
305 | </span> |
124 | 306 | </c:if> |
307 | </div> | |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
308 | <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
|
309 | ${comment.commentFormatted} |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
310 | </div> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
311 | <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
|
312 | <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
|
313 | <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
|
314 | <table class="formtable fullwidth"> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
315 | <tbody> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
316 | <tr> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
317 | <td> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
318 | <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
|
319 | </td> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
320 | </tr> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
321 | </tbody> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
322 | <tfoot> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
323 | <tr> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
324 | <td> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
325 | <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
|
326 | </td> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
327 | </tr> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
328 | </tfoot> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
329 | </table> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
184
diff
changeset
|
330 | </form> |
124 | 331 | </div> |
332 | </div> | |
333 | </c:forEach> | |
334 | </c:if> | |
335 |