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

changeset 72
0646c14e36fb
parent 70
821c4950b619
     1.1 --- a/src/main/webapp/WEB-INF/dynamic_fragments/projects.jsp	Fri May 22 16:21:31 2020 +0200
     1.2 +++ b/src/main/webapp/WEB-INF/dynamic_fragments/projects.jsp	Fri May 22 16:21:59 2020 +0200
     1.3 @@ -37,49 +37,51 @@
     1.4  
     1.5  <c:if test="${empty projects}">
     1.6      <div class="info-box">
     1.7 -    <fmt:message key="no-projects" />
     1.8 +        <fmt:message key="no-projects"/>
     1.9      </div>
    1.10  </c:if>
    1.11  
    1.12  <div id="tool-area">
    1.13 -    <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create" /></a>
    1.14 +    <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create"/></a>
    1.15  </div>
    1.16  
    1.17  <c:if test="${not empty projects}">
    1.18 -<table id="project-list" class="datatable medskip fullwidth">
    1.19 -    <colgroup>
    1.20 -        <col>
    1.21 -        <col style="width: 10%">
    1.22 -        <col style="width: 35%">
    1.23 -        <col style="width: 30%">
    1.24 -        <col style="width: 25%">
    1.25 -    </colgroup>
    1.26 -    <thead>
    1.27 -    <tr>
    1.28 -        <th></th>
    1.29 -        <th><fmt:message key="thead.name"/></th>
    1.30 -        <th><fmt:message key="thead.description"/></th>
    1.31 -        <th><fmt:message key="thead.repoUrl"/></th>
    1.32 -        <th><fmt:message key="thead.owner"/></th>
    1.33 -    </tr>
    1.34 -    </thead>
    1.35 -    <tbody>
    1.36 -    <c:forEach var="project" items="${projects}">
    1.37 -        <tr class="nowrap">
    1.38 -            <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">&#x270e;</a></td>
    1.39 -            <td><a href="./${moduleInfo.modulePath}/view?pid=${project.id}"><c:out value="${project.name}"/></a></td>
    1.40 -            <td><c:out value="${project.description}"/></td>
    1.41 -            <td>
    1.42 -                <c:if test="${not empty project.repoUrl}">
    1.43 -                <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out value="${project.repoUrl}"/></a>
    1.44 -                </c:if>
    1.45 -            </td>
    1.46 -            <td>
    1.47 -            <c:if test="${not empty project.owner}"><c:out value="${project.owner.displayname}"/></c:if>
    1.48 -            <c:if test="${empty project.owner}"><fmt:message key="placeholder.null-owner" /></c:if>
    1.49 -            </td>
    1.50 +    <table id="project-list" class="datatable medskip fullwidth">
    1.51 +        <colgroup>
    1.52 +            <col>
    1.53 +            <col style="width: 10%">
    1.54 +            <col style="width: 35%">
    1.55 +            <col style="width: 30%">
    1.56 +            <col style="width: 25%">
    1.57 +        </colgroup>
    1.58 +        <thead>
    1.59 +        <tr>
    1.60 +            <th></th>
    1.61 +            <th><fmt:message key="thead.name"/></th>
    1.62 +            <th><fmt:message key="thead.description"/></th>
    1.63 +            <th><fmt:message key="thead.repoUrl"/></th>
    1.64 +            <th><fmt:message key="thead.owner"/></th>
    1.65          </tr>
    1.66 -    </c:forEach>
    1.67 -    </tbody>
    1.68 -</table>
    1.69 +        </thead>
    1.70 +        <tbody>
    1.71 +        <c:forEach var="project" items="${projects}">
    1.72 +            <tr class="nowrap">
    1.73 +                <td style="width: 2em;"><a href="./${moduleInfo.modulePath}/edit?id=${project.id}">&#x270e;</a></td>
    1.74 +                <td><a href="./${moduleInfo.modulePath}/view?pid=${project.id}"><c:out value="${project.name}"/></a>
    1.75 +                </td>
    1.76 +                <td><c:out value="${project.description}"/></td>
    1.77 +                <td>
    1.78 +                    <c:if test="${not empty project.repoUrl}">
    1.79 +                        <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out
    1.80 +                                value="${project.repoUrl}"/></a>
    1.81 +                    </c:if>
    1.82 +                </td>
    1.83 +                <td>
    1.84 +                    <c:if test="${not empty project.owner}"><c:out value="${project.owner.displayname}"/></c:if>
    1.85 +                    <c:if test="${empty project.owner}"><fmt:message key="placeholder.null-owner"/></c:if>
    1.86 +                </td>
    1.87 +            </tr>
    1.88 +        </c:forEach>
    1.89 +        </tbody>
    1.90 +    </table>
    1.91  </c:if>

mercurial