22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 --%> |
26 --%> |
27 <%@page pageEncoding="UTF-8" import="de.uapcore.lightpit.viewmodel.ProjectView" %> |
|
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
27 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
28 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
29 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
31 |
30 |
32 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetailsView" scope="request" /> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetails" scope="request" /> |
33 |
32 |
34 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> |
33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> |
35 <c:set var="component" scope="page" value="${viewmodel.componentFilter}"/> |
34 <c:set var="component" scope="page" value="${viewmodel.component}"/> |
|
35 <c:set var="version" scope="page" value="${viewmodel.version}"/> |
36 <%@include file="../jspf/project-header.jspf"%> |
36 <%@include file="../jspf/project-header.jspf"%> |
37 |
37 |
38 <div id="tool-area"> |
38 <div id="tool-area"> |
39 <c:remove var="createIssueParams"/> |
39 <a href="./projects/${project.node}/issues/${empty version ? '-' : version.node}/${empty component ? '-' : component.node}/-/create" class="button"><fmt:message key="button.issue.create"/></a> |
40 <c:if test="${viewmodel.versionFilter.id gt 0}"> |
40 <a href="./projects/${project.node}/edit" class="button"><fmt:message key="button.project.edit"/></a> |
41 <c:set var="createIssueParams">&vid=${viewmodel.versionFilter.id}</c:set> |
41 <c:if test="${not empty version}"> |
|
42 <a href="./projects/${project.node}/versions/${version.node}/edit" class="button"><fmt:message key="button.version.edit"/></a> |
42 </c:if> |
43 </c:if> |
43 <c:if test="${viewmodel.componentFilter.id gt 0}"> |
44 <a href="./projects/${project.node}/versions/-/create" class="button"><fmt:message key="button.version.create"/></a> |
44 <c:set var="createIssueParams">${createIssueParams}&cid=${viewmodel.componentFilter.id}</c:set> |
45 <c:if test="${not empty component}"> |
|
46 <a href="./projects/${project.node}/components/${component.node}/edit" class="button"><fmt:message key="button.component.edit"/></a> |
45 </c:if> |
47 </c:if> |
46 <c:if test="${not empty createIssueParams}"> |
48 <a href="./projects/${project.node}/components/-/create" class="button"><fmt:message key="button.component.create"/></a> |
47 <c:set var="createIssueParams">?${fn:substringAfter(createIssueParams, "&")}</c:set> |
|
48 </c:if> |
|
49 <a href="./projects/${project.node}/create-issue${createIssueParams}" class="button"><fmt:message key="button.issue.create"/></a> |
|
50 <c:if test="${viewmodel.versionFilter.id gt 0}"> |
|
51 <a href="./projects/${project.node}/versions/${viewmodel.versionFilter.node}/edit" class="button"><fmt:message key="button.version.edit"/></a> |
|
52 </c:if> |
|
53 <a href="./projects/${project.node}/create-version" class="button"><fmt:message key="button.version.create"/></a> |
|
54 <c:if test="${viewmodel.componentFilter.id gt 0}"> |
|
55 <a href="./projects/${project.node}/components/${viewmodel.componentFilter.node}/edit" class="button"><fmt:message key="button.component.edit"/></a> |
|
56 </c:if> |
|
57 <a href="./projects/${project.node}/create-component" class="button"><fmt:message key="button.component.create"/></a> |
|
58 </div> |
49 </div> |
59 |
50 |
60 <h2><fmt:message key="progress" /></h2> |
51 <h2><fmt:message key="progress" /></h2> |
61 |
52 |
62 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" /> |
53 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" /> |
63 <%@include file="../jspf/issue-summary.jspf"%> |
54 <%@include file="../jspf/issue-summary.jspf"%> |
64 |
55 |
65 <c:choose> |
56 <c:choose> |
66 <c:when test="${viewmodel.versionFilter eq ProjectView.NO_VERSION or viewmodel.versionFilter eq ProjectView.ALL_VERSIONS}"> |
57 <c:when test="${empty viewmodel.versionInfo}"> |
67 <h2> |
58 <h2> |
68 <c:if test="${viewmodel.versionFilter eq ProjectView.NO_VERSION}"> |
59 <fmt:message key="issues" /> |
69 <fmt:message key="issue.without-version" /> |
|
70 </c:if> |
|
71 <c:if test="${viewmodel.versionFilter ne ProjectView.NO_VERSION}"> |
|
72 <fmt:message key="issues" /> |
|
73 </c:if> |
|
74 </h2> |
60 </h2> |
75 <c:set var="summary" value="${viewmodel.projectDetails.issueSummary}"/> |
61 <c:set var="summary" value="${viewmodel.issueSummary}"/> |
76 <c:set var="issues" value="${viewmodel.projectDetails.issues}"/> |
62 <c:set var="issues" value="${viewmodel.issues}"/> |
77 <%@include file="../jspf/issue-summary.jspf"%> |
63 <%@include file="../jspf/issue-summary.jspf"%> |
78 <c:if test="${not empty issues}"> |
64 <c:if test="${not empty issues}"> |
79 <%@include file="../jspf/issue-list.jspf"%> |
65 <%@include file="../jspf/issue-list.jspf"%> |
80 </c:if> |
66 </c:if> |
81 </c:when> |
67 </c:when> |
82 <c:otherwise> |
68 <c:otherwise> |
83 <c:set var="versionInfo" value="${viewmodel.projectDetails.versionInfo}"/> |
69 <c:set var="versionInfo" value="${viewmodel.versionInfo}"/> |
84 <h2> |
70 <h2> |
85 <fmt:message key="version" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/> |
71 <fmt:message key="version" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/> |
86 </h2> |
72 </h2> |
87 |
73 |
88 <h3><fmt:message key="issues.resolved"/> </h3> |
74 <h3><fmt:message key="issues.resolved"/> </h3> |