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

changeset 178
88207b860cba
parent 134
f47e82cd6077
child 180
009700915269
equal deleted inserted replaced
177:9884941a6d79 178:88207b860cba
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" import="de.uapcore.lightpit.viewmodel.ProjectView" %>
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
30 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
30 31
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetailsView" scope="request" /> 32 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetailsView" scope="request" />
32 33
33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> 34 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
34 <c:set var="component" scope="page" value="${viewmodel.componentFilter}"/> 35 <c:set var="component" scope="page" value="${viewmodel.componentFilter}"/>
35 <%@include file="../jspf/project-header.jspf"%> 36 <%@include file="../jspf/project-header.jspf"%>
36 37
37 <div id="tool-area"> 38 <div id="tool-area">
38 <a href="./projects/${project.node}/create-issue" class="button"><fmt:message key="button.issue.create"/></a> 39 <c:remove var="createIssueParams"/>
40 <c:if test="${viewmodel.versionFilter.id gt 0}">
41 <c:set var="createIssueParams">&vid=${viewmodel.versionFilter.id}</c:set>
42 </c:if>
43 <c:if test="${viewmodel.componentFilter.id gt 0}">
44 <c:set var="createIssueParams">${createIssueParams}&cid=${viewmodel.componentFilter.id}</c:set>
45 </c:if>
46 <c:if test="${not empty createIssueParams}">
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>
39 <c:if test="${viewmodel.versionFilter.id gt 0}"> 50 <c:if test="${viewmodel.versionFilter.id gt 0}">
40 <a href="./projects/${project.node}/versions/${viewmodel.versionFilter.node}/edit" class="button"><fmt:message key="button.version.edit"/></a> 51 <a href="./projects/${project.node}/versions/${viewmodel.versionFilter.node}/edit" class="button"><fmt:message key="button.version.edit"/></a>
41 </c:if> 52 </c:if>
42 <a href="./projects/${project.node}/create-version" class="button"><fmt:message key="button.version.create"/></a> 53 <a href="./projects/${project.node}/create-version" class="button"><fmt:message key="button.version.create"/></a>
43 <c:if test="${viewmodel.componentFilter.id gt 0}"> 54 <c:if test="${viewmodel.componentFilter.id gt 0}">

mercurial