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

changeset 52
67a02e79b7a1
parent 51
dd0a45ae25d7
child 59
c759c60507a2
equal deleted inserted replaced
51:dd0a45ae25d7 52:67a02e79b7a1
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" %> 28 <%@page import="de.uapcore.lightpit.Constants" %>
29 <%@page import="de.uapcore.lightpit.modules.ProjectsModule" %>
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 30 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 31 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
31 32
32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/> 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]}"/>
33 35
34 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request"/> 36 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request"/>
35 37
36 <c:if test="${empty projects}"> 38 <c:if test="${empty projects}">
37 <div class="info-box"> 39 <div class="info-box">
42 <div id="tool-area"> 44 <div id="tool-area">
43 <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create" /></a> 45 <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create" /></a>
44 </div> 46 </div>
45 47
46 <c:if test="${not empty projects}"> 48 <c:if test="${not empty projects}">
47 <table class="datatable medskip"> 49 <table id="project-list" class="datatable medskip">
48 <colgroup> 50 <colgroup>
49 <col> 51 <col>
50 <col style="width: 10%"> 52 <col style="width: 10%">
51 <col style="width: 35%"> 53 <col style="width: 35%">
52 <col style="width: 30%"> 54 <col style="width: 30%">
61 <th><fmt:message key="thead.owner"/></th> 63 <th><fmt:message key="thead.owner"/></th>
62 </tr> 64 </tr>
63 </thead> 65 </thead>
64 <tbody> 66 <tbody>
65 <c:forEach var="project" items="${projects}"> 67 <c:forEach var="project" items="${projects}">
66 <tr> 68 <tr class="nowrap" <c:if test="${project eq selectedProject}">data-selected</c:if> >
67 <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">&#x270e;</a></td> 69 <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">&#x270e;</a></td>
68 <td><c:out value="${project.name}"/></td> 70 <td><a href="./${moduleInfo.modulePath}?select=${project.id}"><c:out value="${project.name}"/></a></td>
69 <td><c:out value="${project.description}"/></td> 71 <td><c:out value="${project.description}"/></td>
70 <td> 72 <td>
71 <c:if test="${not empty project.repoUrl}"> 73 <c:if test="${not empty project.repoUrl}">
72 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out value="${project.repoUrl}"/></a> 74 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out value="${project.repoUrl}"/></a>
73 </c:if> 75 </c:if>

mercurial