src/main/webapp/WEB-INF/jsp/projects.jsp

changeset 131
67df332e3146
parent 117
874ff787949b
child 132
57e5a4624919
--- a/src/main/webapp/WEB-INF/jsp/projects.jsp	Thu Oct 15 18:36:05 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/projects.jsp	Thu Oct 15 20:02:30 2020 +0200
@@ -37,7 +37,7 @@
 </c:if>
 
 <div id="tool-area">
-    <a href="./projects/edit?pid=-1" class="button"><fmt:message key="button.create"/></a>
+    <a href="./projects/create" class="button"><fmt:message key="button.create"/></a>
 </div>
 
 <c:if test="${not empty viewmodel.projectList}">
@@ -68,8 +68,8 @@
         <c:forEach var="projectInfo" items="${viewmodel.projectList}">
             <c:set var="project" scope="page" value="${projectInfo.project}"/>
             <tr class="nowrap">
-                <td style="width: 2em;"><a href="./projects/edit?pid=${project.id}">&#x270e;</a></td>
-                <td><a href="./projects/versions?pid=${project.id}"><c:out value="${project.name}"/></a>
+                <td style="width: 2em;"><a href="./projects/${project.id}/edit">&#x270e;</a></td>
+                <td><a href="./projects/${project.id}/versions/"><c:out value="${project.name}"/></a>
                 </td>
                 <td>
                     <c:if test="${not empty project.repoUrl}">
@@ -79,12 +79,12 @@
                 </td>
                 <td class="hright">
                     <c:if test="${not empty projectInfo.latestVersion}">
-                        <a href="./projects/view?pid=${project.id}&vid=${projectInfo.latestVersion.id}"><c:out value="${projectInfo.latestVersion.name}"/></a>
+                        <a href="./projects/${project.id}/versions/${projectInfo.latestVersion.id}/"><c:out value="${projectInfo.latestVersion.name}"/></a>
                     </c:if>
                 </td>
                 <td class="hright">
                     <c:if test="${not empty projectInfo.nextVersion}">
-                        <a href="./projects/view?pid=${project.id}&vid=${projectInfo.nextVersion.id}"><c:out value="${projectInfo.nextVersion.name}"/></a>
+                        <a href="./projects/${project.id}/versions/${projectInfo.nextVersion.id}/"><c:out value="${projectInfo.nextVersion.name}"/></a>
                     </c:if>
                 </td>
                 <td class="hright">${projectInfo.issueSummary.open}</td>

mercurial