27 <%@page pageEncoding="UTF-8" %> |
27 <%@page pageEncoding="UTF-8" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 |
30 |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueDetailView" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueDetailView" scope="request"/> |
|
32 |
|
33 <c:set var="project" scope="page" value="${viewmodel.project}"/> |
|
34 <c:set var="component" scope="page" value="${viewmodel.component}"/> |
|
35 <c:set var="version" scope="page" value="${viewmodel.version}"/> |
32 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
36 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
|
37 |
|
38 <c:set var="issuesHref" scope="page" value="./projects/${project.node}/issues/${empty version ? '-' : version.node }/${empty component ? '-' : component.node}/"/> |
33 |
39 |
34 <table class="formtable fullwidth"> |
40 <table class="formtable fullwidth"> |
35 <colgroup> |
41 <colgroup> |
36 <col> |
42 <col> |
37 <col style="width: 100%"> |
43 <col style="width: 100%"> |
135 </tr> |
141 </tr> |
136 </tbody> |
142 </tbody> |
137 <tfoot> |
143 <tfoot> |
138 <tr> |
144 <tr> |
139 <td colspan="2"> |
145 <td colspan="2"> |
140 <%-- TODO: fix #14 --%> |
146 <a href="${issuesHref}" class="button"> |
141 <a href="./projects/${issue.project.node}/all-components/all-versions/issues/" class="button"> |
|
142 <fmt:message key="button.cancel"/> |
147 <fmt:message key="button.cancel"/> |
143 </a> |
148 </a> |
144 <a href="./projects/${issue.project.node}/issues/${issue.id}/edit" class="button submit"> |
149 <a href="${issuesHref}${issue.id}/edit" class="button submit"> |
145 <fmt:message key="button.issue.edit"/> |
150 <fmt:message key="button.issue.edit"/> |
146 </a> |
151 </a> |
147 </td> |
152 </td> |
148 </tr> |
153 </tr> |
149 </tfoot> |
154 </tfoot> |
150 </table> |
155 </table> |
151 |
156 |
152 <hr class="comments-separator"/> |
157 <hr class="comments-separator"/> |
153 <h2><fmt:message key="issue.comments"/></h2> |
158 <h2><fmt:message key="issue.comments"/></h2> |
154 <c:if test="${viewmodel.issue.id ge 0}"> |
159 <c:if test="${viewmodel.issue.id ge 0}"> |
155 <form id="comment-form" action="./projects/commit-issue-comment" method="post"> |
160 <form id="comment-form" action="${issuesHref}${issue.id}/comment" method="post"> |
156 <table class="formtable fullwidth"> |
161 <table class="formtable fullwidth"> |
157 <tbody> |
162 <tbody> |
158 <tr> |
163 <tr> |
159 <td><textarea rows="5" name="comment" required></textarea></td> |
164 <td><textarea rows="5" name="comment" required></textarea></td> |
160 </tr> |
165 </tr> |
161 </tbody> |
166 </tbody> |
162 <tfoot> |
167 <tfoot> |
163 <tr> |
168 <tr> |
164 <td> |
169 <td> |
165 <input type="hidden" name="issueid" value="${issue.id}"/> |
|
166 <button type="submit"><fmt:message key="button.comment"/></button> |
170 <button type="submit"><fmt:message key="button.comment"/></button> |
167 </td> |
171 </td> |
168 </tr> |
172 </tr> |
169 </tfoot> |
173 </tfoot> |
170 </table> |
174 </table> |