src/main/webapp/WEB-INF/jspf/sort-box.jspf

Sun, 28 Jul 2024 12:16:19 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 28 Jul 2024 12:16:19 +0200
changeset 302
a27af2669825
parent 271
f8f5e82944fa
permissions
-rw-r--r--

upgrade to jvm 21 and kotlin 2.0

issue #401

<%--
Page attribute:
  sortPriority: String
  currentSort: IssueSorter.Criteria
--%>
<div style="display: inline-block">
    <label class="caption" style="display:block;" for="sort_${sortPriority}"><fmt:message key="issue.filter.sort.${sortPriority}"/></label>
    <select id="sort_${sortPriority}" name="sort_${sortPriority}">
        <c:forEach var="criteria" items="${viewmodel.filter.sortCriteria}">
            <option value="${criteria}" <c:if test="${currentSort eq criteria}">selected</c:if> >
                <fmt:message key="${criteria.field.resourceKey}"/>
                <c:if test="${criteria.asc}">&uarr;</c:if>
                <c:if test="${not criteria.asc}">&darr;</c:if>
            </option>
        </c:forEach>
    </select>
</div>

mercurial