summaryrefslogtreecommitdiff
path: root/templates/displayheaders
diff options
context:
space:
mode:
Diffstat (limited to 'templates/displayheaders')
-rw-r--r--templates/displayheaders/_main_table.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/displayheaders/_main_table.html.ep b/templates/displayheaders/_main_table.html.ep
index e06e925..c88e125 100644
--- a/templates/displayheaders/_main_table.html.ep
+++ b/templates/displayheaders/_main_table.html.ep
@@ -3,7 +3,7 @@
%= link_to url_with->query(sort => $param eq (param('sort') || '') ? '!' . $param : $param) => begin
% no warnings qw(experimental::smartmatch);
- %= do { given (param('sort')) { '↑' when ($param); '↓' when ('!' . $param) } }
+ %= do { if (param('sort') eq '↑') { $param } elsif (param('sort') eq '↓') { '!' . $param } else { die } }
%= ucfirst l $param;
% end