| 30 |
30 |
| 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueEditView" scope="request"/> |
| 32 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
32 <c:set var="issue" scope="page" value="${viewmodel.issue}" /> |
| 33 |
33 |
| 34 <form action="./projects/issues/commit" method="post"> |
34 <form action="./projects/issues/commit" method="post"> |
| 35 <table class="formtable"> |
35 <table class="formtable fullwidth"> |
| 36 <colgroup> |
36 <colgroup> |
| 37 <col> |
37 <col> |
| 38 <col style="width: 75ch"> |
38 <col style="width: 100%"> |
| 39 </colgroup> |
39 </colgroup> |
| 40 <tbody> |
40 <tbody> |
| 41 <c:if test="${viewmodel.issue.id ge 0}"> |
41 <c:if test="${viewmodel.issue.id ge 0}"> |
| 42 <tr> |
42 <tr> |
| 43 <th><fmt:message key="issue.id"/></th> |
43 <th><fmt:message key="issue.id"/></th> |
| 167 </td> |
167 </td> |
| 168 </tr> |
168 </tr> |
| 169 </tfoot> |
169 </tfoot> |
| 170 </table> |
170 </table> |
| 171 </form> |
171 </form> |
| |
172 <hr class="comments-separator"/> |
| |
173 <h2><fmt:message key="issue.comments"/></h2> |
| |
174 <c:if test="${viewmodel.issue.id ge 0}"> |
| |
175 <form id="comment-form" action="./projects/issues/comment" method="post"> |
| |
176 <table class="formtable fullwidth"> |
| |
177 <tbody> |
| |
178 <tr> |
| |
179 <td><textarea rows="5" name="comment"></textarea></td> |
| |
180 </tr> |
| |
181 </tbody> |
| |
182 <tfoot> |
| |
183 <tr> |
| |
184 <td> |
| |
185 <input type="hidden" name="issueid" value="${issue.id}"/> |
| |
186 <button type="submit"><fmt:message key="button.comment"/></button> |
| |
187 </td> |
| |
188 </tr> |
| |
189 </tfoot> |
| |
190 </table> |
| |
191 </form> |
| |
192 <c:forEach var="comment" items="${viewmodel.comments}"> |
| |
193 <div class="comment"> |
| |
194 <div class="caption"> |
| |
195 <c:if test="${not empty comment.author}"> |
| |
196 <c:out value="${comment.author.displayname}"/> |
| |
197 </c:if> |
| |
198 <c:if test="${empty comment.author}"> |
| |
199 <fmt:message key="issue.comments.anonauthor"/> |
| |
200 </c:if> |
| |
201 </div> |
| |
202 <div class="smalltext"> |
| |
203 <fmt:formatDate type="BOTH" value="${comment.created}" /> |
| |
204 <c:if test="${comment.updateCount gt 0}"> |
| |
205 <!-- TODO: update count --> |
| |
206 </c:if> |
| |
207 </div> |
| |
208 <div class="medskip"> |
| |
209 <c:out value="${comment.comment}"/> |
| |
210 </div> |
| |
211 </div> |
| |
212 </c:forEach> |
| |
213 </c:if> |
| |
214 |