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}"> |
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}">✎</a></td> |
67 <td style="width: 2em;"><a href="./projects/edit?id=${project.id}">✎</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 |