src/main/webapp/WEB-INF/jspf/issue-list.jspf

Sat, 09 Nov 2024 11:47:20 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 09 Nov 2024 11:47:20 +0100
changeset 335
1eed60b779da
parent 325
388c1d2147d4
permissions
-rw-r--r--

change language menu to settings menu and add timezone settings - fixes #402

<%--
issues: List<Issue>
issuesHref: String
showVersionInfo: boolean
showProjectInfo: boolean
--%>
<table class="fullwidth datatable medskip">
    <colgroup>
        <c:if test="${showProjectInfo}">
        <col style="width: 10%" />
        </c:if>
        <col style="width: auto" />
        <col style="width: 10%" />
        <col style="width: 10%" />
        <col style="width: 10%" />
    </colgroup>
    <thead>
        <tr>
            <c:if test="${showProjectInfo}">
            <th><fmt:message key="project"/></th>
            </c:if>
            <th><fmt:message key="issue.subject"/></th>
            <th><fmt:message key="issue.eta"/></th>
            <th><fmt:message key="issue.updated"/></th>
            <th><fmt:message key="issue.assignee"/></th>
        </tr>
    </thead>
    <tbody>
    <c:forEach var="issue" items="${issues}">
        <tr>
            <c:if test="${showProjectInfo}">
            <td>
                <a href="./projects/${issue.project.node}">
                    <c:out value="${issue.project.name}"/>
                </a>
            </td>
            </c:if>
            <td>
                <span class="phase-${issue.status.phase.number}">
                    <a href="${issuesHref}${issue.id}">
                        #${issue.id}&nbsp;-&nbsp;<c:out value="${issue.subject}" />
                    </a>
                </span>
                <div style="display: inline-block; width: .25em"></div>
                <div class="issue-tag ${issue.category}">
                    <fmt:message key="issue.category.${issue.category}" />
                </div>
                <div class="issue-tag phase-${issue.status.phase.number}">
                    <fmt:message key="issue.status.${issue.status}" />
                </div>
                <c:if test="${showVersionInfo and issue.resolved != null}">
                <div class="issue-tag">
                    <c:out value="${issue.resolved.name}"/>
                </div>
                </c:if>
                <c:if test="${showComponentInfo and issue.component != null}">
                    <div class="issue-tag">
                        <c:out value="${issue.component.name}"/>
                    </div>
                </c:if>
            </td>
            <td>
                <span class="nowrap <c:if test="${issue.overdue}">eta-overdue</c:if> ">
                    <fmt:formatDate value="${issue.eta}" timeZone="${timezone}" />
                </span>
            </td>
            <td>
                <span class="nowrap">
                    <fmt:formatDate value="${issue.updated}" timeZone="${timezone}" />
                </span>
            </td>
            <td>
                <c:if test="${not empty issue.assignee}">
                    <c:if test="${not empty issue.assignee.mail}">
                        <a href="mailto:${issue.assignee.mail}" title="<c:out value="${issue.assignee.displayname}"/>"><c:out value="${issue.assignee.username}"/></a>
                    </c:if>
                    <c:if test="${empty issue.assignee.mail}">
                        <span title="<c:out value="${issue.assignee.displayname}"/>"><c:out value="${issue.assignee.username}"/></span>
                    </c:if>
                </c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>

mercurial