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

Wed, 06 Jan 2021 16:20:32 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 06 Jan 2021 16:20:32 +0100
changeset 181
502a10e24b85
parent 180
009700915269
child 184
e8eecee6aadf
permissions
-rw-r--r--

renames several resource keys

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

mercurial