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

changeset 146
b0e83cab0bde
parent 142
c0549bcdf2ab
child 156
c5d6820d884e
equal deleted inserted replaced
145:6d2d69fd1c12 146:b0e83cab0bde
167 </tbody> 167 </tbody>
168 <tfoot> 168 <tfoot>
169 <tr> 169 <tr>
170 <td colspan="2"> 170 <td colspan="2">
171 <input type="hidden" name="id" value="${issue.id}"/> 171 <input type="hidden" name="id" value="${issue.id}"/>
172 <%-- TODO: fix #14 --%> 172 <c:if test="${issue.id ge 0}">
173 <a href="./projects/${issue.project.node}/all-components/all-versions/issues/" class="button"> 173 <a href="./projects/${issue.project.node}/issues/${issue.id}/view" class="button">
174 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/> 174 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
175 </a> 175 </a>
176 </c:if>
177 <c:if test="${issue.id lt 0}">
178 <%-- TODO: fix #14 --%>
179 <a href="./projects/${issue.project.node}/all-components/all-versions/issues/" class="button">
180 <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
181 </a>
182 </c:if>
176 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button> 183 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>
177 </td> 184 </td>
178 </tr> 185 </tr>
179 </tfoot> 186 </tfoot>
180 </table> 187 </table>
181 </form> 188 </form>
182 <hr class="comments-separator"/>
183 <h2><fmt:message key="issue.comments"/></h2>
184 <c:if test="${viewmodel.issue.id ge 0}">
185 <form id="comment-form" action="./projects/commit-issue-comment" method="post">
186 <table class="formtable fullwidth">
187 <tbody>
188 <tr>
189 <td><textarea rows="5" name="comment" required></textarea></td>
190 </tr>
191 </tbody>
192 <tfoot>
193 <tr>
194 <td>
195 <input type="hidden" name="issueid" value="${issue.id}"/>
196 <button type="submit"><fmt:message key="button.comment"/></button>
197 </td>
198 </tr>
199 </tfoot>
200 </table>
201 </form>
202 <c:forEach var="comment" items="${viewmodel.comments}">
203 <div class="comment">
204 <div class="caption">
205 <c:if test="${not empty comment.author}">
206 <c:out value="${comment.author.displayname}"/>
207 </c:if>
208 <c:if test="${empty comment.author}">
209 <fmt:message key="issue.comments.anonauthor"/>
210 </c:if>
211 </div>
212 <div class="smalltext">
213 <fmt:formatDate type="BOTH" value="${comment.created}" />
214 <c:if test="${comment.updateCount gt 0}">
215 <!-- TODO: update count -->
216 </c:if>
217 </div>
218 <div class="medskip">
219 <c:out value="${comment.comment}"/>
220 </div>
221 </div>
222 </c:forEach>
223 </c:if>
224

mercurial