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

changeset 78
bb4c52bf3439
parent 74
91d1fc2a3a14
child 81
1a2e7b5d48f7
equal deleted inserted replaced
77:192298f8161f 78:bb4c52bf3439
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" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@page import="de.uapcore.lightpit.Constants" %>
29 <%@page import="de.uapcore.lightpit.modules.ProjectsModule" %> 28 <%@page import="de.uapcore.lightpit.modules.ProjectsModule" %>
30 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
31 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
32 31
33 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
34 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/> 32 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/>
35 33
36 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request"/> 34 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request"/>
37 35
38 <c:if test="${empty projects}"> 36 <c:if test="${empty projects}">
40 <fmt:message key="no-projects"/> 38 <fmt:message key="no-projects"/>
41 </div> 39 </div>
42 </c:if> 40 </c:if>
43 41
44 <div id="tool-area"> 42 <div id="tool-area">
45 <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create"/></a> 43 <a href="./projects/edit" class="button"><fmt:message key="button.create"/></a>
46 </div> 44 </div>
47 45
48 <c:if test="${not empty projects}"> 46 <c:if test="${not empty projects}">
49 <table id="project-list" class="datatable medskip fullwidth"> 47 <table id="project-list" class="datatable medskip fullwidth">
50 <colgroup> 48 <colgroup>
64 </tr> 62 </tr>
65 </thead> 63 </thead>
66 <tbody> 64 <tbody>
67 <c:forEach var="project" items="${projects}"> 65 <c:forEach var="project" items="${projects}">
68 <tr class="nowrap"> 66 <tr class="nowrap">
69 <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">&#x270e;</a></td> 67 <td style="width: 2em;"><a href="./projects/edit?id=${project.id}">&#x270e;</a></td>
70 <td><a href="./${moduleInfo.modulePath}/view?pid=${project.id}"><c:out value="${project.name}"/></a> 68 <td><a href="./projects/view?pid=${project.id}"><c:out value="${project.name}"/></a>
71 </td> 69 </td>
72 <td><c:out value="${project.description}"/></td> 70 <td><c:out value="${project.description}"/></td>
73 <td> 71 <td>
74 <c:if test="${not empty project.repoUrl}"> 72 <c:if test="${not empty project.repoUrl}">
75 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out 73 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out

mercurial