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

Tue, 25 Jul 2023 18:19:04 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 25 Jul 2023 18:19:04 +0200
changeset 288
10324c383126
parent 271
f8f5e82944fa
permissions
-rw-r--r--

fix wrong regex for commit-refs

and also adds some more - fixes #279

86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <%--
271
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
2 Page attribute:
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
3 sortPriority: String
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
4 currentSort: IssueSorter.Criteria
86
0a658e53177c improves issue overview and adds progress information
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 --%>
271
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
6 <div style="display: inline-block">
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
7 <label class="caption" style="display:block;" for="sort_${sortPriority}"><fmt:message key="issue.filter.sort.${sortPriority}"/></label>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
8 <select id="sort_${sortPriority}" name="sort_${sortPriority}">
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
9 <c:forEach var="criteria" items="${viewmodel.filter.sortCriteria}">
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
10 <option value="${criteria}" <c:if test="${currentSort eq criteria}">selected</c:if> >
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
11 <fmt:message key="${criteria.field.resourceKey}"/>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
12 <c:if test="${criteria.asc}">&uarr;</c:if>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
13 <c:if test="${not criteria.asc}">&darr;</c:if>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
14 </option>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
15 </c:forEach>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
16 </select>
f8f5e82944fa #15 add sort options
Mike Becker <universe@uap-core.de>
parents: 270
diff changeset
17 </div>

mercurial