--- a/src/main/webapp/WEB-INF/dynamic_fragments/projects.jsp Fri May 22 16:21:31 2020 +0200 +++ b/src/main/webapp/WEB-INF/dynamic_fragments/projects.jsp Fri May 22 16:21:59 2020 +0200 @@ -37,49 +37,51 @@ <c:if test="${empty projects}"> <div class="info-box"> - <fmt:message key="no-projects" /> + <fmt:message key="no-projects"/> </div> </c:if> <div id="tool-area"> - <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create" /></a> + <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create"/></a> </div> <c:if test="${not empty projects}"> -<table id="project-list" class="datatable medskip fullwidth"> - <colgroup> - <col> - <col style="width: 10%"> - <col style="width: 35%"> - <col style="width: 30%"> - <col style="width: 25%"> - </colgroup> - <thead> - <tr> - <th></th> - <th><fmt:message key="thead.name"/></th> - <th><fmt:message key="thead.description"/></th> - <th><fmt:message key="thead.repoUrl"/></th> - <th><fmt:message key="thead.owner"/></th> - </tr> - </thead> - <tbody> - <c:forEach var="project" items="${projects}"> - <tr class="nowrap"> - <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">✎</a></td> - <td><a href="./${moduleInfo.modulePath}/view?pid=${project.id}"><c:out value="${project.name}"/></a></td> - <td><c:out value="${project.description}"/></td> - <td> - <c:if test="${not empty project.repoUrl}"> - <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out value="${project.repoUrl}"/></a> - </c:if> - </td> - <td> - <c:if test="${not empty project.owner}"><c:out value="${project.owner.displayname}"/></c:if> - <c:if test="${empty project.owner}"><fmt:message key="placeholder.null-owner" /></c:if> - </td> + <table id="project-list" class="datatable medskip fullwidth"> + <colgroup> + <col> + <col style="width: 10%"> + <col style="width: 35%"> + <col style="width: 30%"> + <col style="width: 25%"> + </colgroup> + <thead> + <tr> + <th></th> + <th><fmt:message key="thead.name"/></th> + <th><fmt:message key="thead.description"/></th> + <th><fmt:message key="thead.repoUrl"/></th> + <th><fmt:message key="thead.owner"/></th> </tr> - </c:forEach> - </tbody> -</table> + </thead> + <tbody> + <c:forEach var="project" items="${projects}"> + <tr class="nowrap"> + <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">✎</a></td> + <td><a href="./${moduleInfo.modulePath}/view?pid=${project.id}"><c:out value="${project.name}"/></a> + </td> + <td><c:out value="${project.description}"/></td> + <td> + <c:if test="${not empty project.repoUrl}"> + <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out + value="${project.repoUrl}"/></a> + </c:if> + </td> + <td> + <c:if test="${not empty project.owner}"><c:out value="${project.owner.displayname}"/></c:if> + <c:if test="${empty project.owner}"><fmt:message key="placeholder.null-owner"/></c:if> + </td> + </tr> + </c:forEach> + </tbody> + </table> </c:if>