31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectView" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectView" scope="request"/> |
32 |
32 |
33 <c:forEach var="projectInfo" items="${viewmodel.projectList}"> |
33 <c:forEach var="projectInfo" items="${viewmodel.projectList}"> |
34 <c:set var="isActive" value="${viewmodel.projectInfo.project eq projectInfo.project}" /> |
34 <c:set var="isActive" value="${viewmodel.projectInfo.project eq projectInfo.project}" /> |
35 <div class="menuEntry level-0" <c:if test="${isActive}">data-active</c:if> > |
35 <div class="menuEntry level-0" <c:if test="${isActive}">data-active</c:if> > |
36 <a href="projects/versions?pid=${projectInfo.project.id}"> |
36 <a href="projects/${projectInfo.project.id}/versions/"> |
37 <c:out value="${projectInfo.project.name}"/> |
37 <c:out value="${projectInfo.project.name}"/> |
38 </a> |
38 </a> |
39 </div> |
39 </div> |
40 <c:if test="${isActive}"> |
40 <c:if test="${isActive}"> |
41 <!-- VERSIONS --> |
41 <!-- VERSIONS --> |
42 <div class="menuEntry level-1"> |
42 <div class="menuEntry level-1"> |
43 <a href="projects/versions?pid=${projectInfo.project.id}"> |
43 <a href="projects/${projectInfo.project.id}/versions/"> |
44 <fmt:message key="navmenu.versions"/> |
44 <fmt:message key="navmenu.versions"/> |
45 </a> |
45 </a> |
46 </div> |
46 </div> |
47 <div class="menuEntry level-2"> |
47 <div class="menuEntry level-2"> |
48 <div class="navmenu-icon" style="background: black"></div> |
48 <div class="navmenu-icon" style="background: black"></div> |
49 <a href="projects/view?pid=${projectInfo.project.id}&vid=-1"> |
49 <a href="projects/${projectInfo.project.id}/versions/unassigned"> |
50 <fmt:message key="navmenu.unassigned" /> |
50 <fmt:message key="navmenu.unassigned" /> |
51 </a> |
51 </a> |
52 </div> |
52 </div> |
53 <c:forEach var="version" items="${viewmodel.projectInfo.versions}"> |
53 <c:forEach var="version" items="${viewmodel.projectInfo.versions}"> |
54 <c:set var="isVersionActive" value="${viewmodel.versionFilter eq version}" /> |
54 <c:set var="isVersionActive" value="${viewmodel.versionFilter eq version}" /> |
55 <div class="menuEntry level-2" <c:if test="${isVersionActive}">data-active</c:if> |
55 <div class="menuEntry level-2" <c:if test="${isVersionActive}">data-active</c:if> |
56 title="<fmt:message key="version.status.${version.status}" />"> |
56 title="<fmt:message key="version.status.${version.status}" />"> |
57 <div class="navmenu-icon version-${version.status}"></div> |
57 <div class="navmenu-icon version-${version.status}"></div> |
58 <a href="projects/view?pid=${projectInfo.project.id}&vid=${version.id}"> |
58 <a href="projects/${projectInfo.project.id}/versions/${version.id}"> |
59 <c:out value="${version.name}"/> |
59 <c:out value="${version.name}"/> |
60 </a> |
60 </a> |
61 </div> |
61 </div> |
62 </c:forEach> |
62 </c:forEach> |
63 <!-- COMPONENTS --> |
63 <%-- COMPONENTS |
|
64 TODO: find a way to combine version and component into one URL |
64 <div class="menuEntry level-1"> |
65 <div class="menuEntry level-1"> |
65 <a href="projects/components?pid=${projectInfo.project.id}"> |
66 <a href="projects/${projectInfo.project.id}/components/"> |
66 <fmt:message key="navmenu.components"/> |
67 <fmt:message key="navmenu.components"/> |
67 </a> |
68 </a> |
68 </div> |
69 </div> |
69 <div class="menuEntry level-2"> |
70 <div class="menuEntry level-2"> |
70 <div class="navmenu-icon" style="background: black"></div> |
71 <div class="navmenu-icon" style="background: black"></div> |
71 <a href="projects/view?pid=${projectInfo.project.id}&cid=0"> |
72 <a href="projects/${projectInfo.project.id}/components/"> |
72 <fmt:message key="navmenu.all" /> |
73 <fmt:message key="navmenu.all" /> |
73 </a> |
74 </a> |
74 </div> |
75 </div> |
75 <div class="menuEntry level-2"> |
76 <div class="menuEntry level-2"> |
76 <div class="navmenu-icon" style="background: black"></div> |
77 <div class="navmenu-icon" style="background: black"></div> |
77 <a href="projects/view?pid=${projectInfo.project.id}&cid=-1"> |
78 <a href="projects/${projectInfo.project.id}/components/unassigned"> |
78 <fmt:message key="navmenu.unassigned" /> |
79 <fmt:message key="navmenu.unassigned" /> |
79 </a> |
80 </a> |
80 </div> |
81 </div> |
81 <c:forEach var="component" items="${viewmodel.projectInfo.components}"> |
82 <c:forEach var="component" items="${viewmodel.projectInfo.components}"> |
82 <c:set var="isComponentActive" value="${viewmodel.componentFilter eq component}" /> |
83 <c:set var="isComponentActive" value="${viewmodel.componentFilter eq component}" /> |