diff options
author | Paul Martin <paul@paulsputer.com> | 2014-09-29 22:10:20 +0100 |
---|---|---|
committer | Paul Martin <paul@paulsputer.com> | 2014-10-20 22:54:54 +0100 |
commit | f9c78c0ccc709509cdf7f83c45c898883d329db2 (patch) | |
tree | 50c89c4cf7756d9a80948c70b7eba8f14027d198 /src/main/java/com/gitblit/wicket/pages/TicketsPage.java | |
parent | 5be2d394c28f12269ba1aa8e2bd4f9cbd5db9540 (diff) | |
download | gitblit-f9c78c0ccc709509cdf7f83c45c898883d329db2.tar.gz gitblit-f9c78c0ccc709509cdf7f83c45c898883d329db2.zip |
Tickets - Priority, Severity options
+ Severity indicated via new character indicator and color of ticket icon on ticket list
+ Priority indicated via new priority icon and color on ticket list
+ Indexed as integers to provide sorting and maintain language neutral
index
+ Colours and indicator text controlled through CSS classes priority-<x> & severity-<x>
+ UITicketTest created to generate tickets of all types to ease debugging
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/TicketsPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/TicketsPage.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/TicketsPage.java b/src/main/java/com/gitblit/wicket/pages/TicketsPage.java index 745cabf4..ecfed250 100644 --- a/src/main/java/com/gitblit/wicket/pages/TicketsPage.java +++ b/src/main/java/com/gitblit/wicket/pages/TicketsPage.java @@ -464,7 +464,11 @@ public class TicketsPage extends RepositoryPage { sortChoices.add(new TicketSort(getString("gb.sortLeastPatchsetRevisions"), Lucene.patchsets.name(), false));
sortChoices.add(new TicketSort(getString("gb.sortMostVotes"), Lucene.votes.name(), true));
sortChoices.add(new TicketSort(getString("gb.sortLeastVotes"), Lucene.votes.name(), false));
-
+ sortChoices.add(new TicketSort(getString("gb.sortHighestPriority"), Lucene.priority.name(), true));
+ sortChoices.add(new TicketSort(getString("gb.sortLowestPriority"), Lucene.priority.name(), false));
+ sortChoices.add(new TicketSort(getString("gb.sortHighestSeverity"), Lucene.severity.name(), true));
+ sortChoices.add(new TicketSort(getString("gb.sortLowestSeverity"), Lucene.severity.name(), false));
+
TicketSort currentSort = sortChoices.get(0);
for (TicketSort ts : sortChoices) {
if (ts.sortBy.equals(sortBy) && desc == ts.desc) {
|