src/main/webapp/WEB-INF/jsp/project-navmenu.jsp

changeset 140
ac35e58efa44
parent 134
f47e82cd6077
child 167
3f30adba1c63
equal deleted inserted replaced
139:6abc75d213ef 140:ac35e58efa44
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" %> 27 <%@page pageEncoding="UTF-8"
28 import="de.uapcore.lightpit.viewmodel.ProjectView"
29 import="de.uapcore.lightpit.entities.VersionStatus"
30 %>
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 31 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 32 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
30 33
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectView" scope="request"/> 34 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectView" scope="request"/>
32 35
57 <fmt:message key="navmenu.unassigned" /> 60 <fmt:message key="navmenu.unassigned" />
58 </a> 61 </a>
59 </div> 62 </div>
60 <c:forEach var="version" items="${viewmodel.projectInfo.versions}"> 63 <c:forEach var="version" items="${viewmodel.projectInfo.versions}">
61 <c:set var="isVersionActive" value="${viewmodel.versionFilter eq version}" /> 64 <c:set var="isVersionActive" value="${viewmodel.versionFilter eq version}" />
65 <c:if test="${version.status ne VersionStatus.Deprecated or isVersionActive}">
62 <div class="menuEntry level-2" <c:if test="${isVersionActive}">data-active</c:if> 66 <div class="menuEntry level-2" <c:if test="${isVersionActive}">data-active</c:if>
63 title="<fmt:message key="version.status.${version.status}" />"> 67 title="<fmt:message key="version.status.${version.status}" />">
64 <div class="navmenu-icon version-${version.status}"></div> 68 <div class="navmenu-icon version-${version.status}"></div>
65 <a href="projects/${projectInfo.project.node}/${componentNode}/${version.node}/issues/"> 69 <a href="projects/${projectInfo.project.node}/${componentNode}/${version.node}/issues/">
66 <c:out value="${version.name}"/> 70 <c:out value="${version.name}"/>
67 </a> 71 </a>
68 </div> 72 </div>
73 </c:if>
69 </c:forEach> 74 </c:forEach>
70 <!-- COMPONENTS --> 75 <!-- COMPONENTS -->
71 <c:set var="versionNode" value="${not empty viewmodel.versionFilter ? viewmodel.versionFilter.node : 'all-versions'}"/> 76 <c:set var="versionNode" value="${not empty viewmodel.versionFilter ? viewmodel.versionFilter.node : 'all-versions'}"/>
72 <div class="menuEntry level-1" <c:if test="${viewmodel.selectedPage eq ProjectView.SELECTED_PAGE_COMPONENTS}">data-active</c:if>> 77 <div class="menuEntry level-1" <c:if test="${viewmodel.selectedPage eq ProjectView.SELECTED_PAGE_COMPONENTS}">data-active</c:if>>
73 <a href="projects/${projectInfo.project.node}/components/"> 78 <a href="projects/${projectInfo.project.node}/components/">

mercurial