_history_years: remove redundant SQL request

This commit is contained in:
Daniel Friesel 2020-12-03 22:01:39 +01:00
parent a5ab4fa6a8
commit 025b58126f

View file

@ -3,7 +3,7 @@
% my @years = journeys->get_years(uid => current_user->{id}); % my @years = journeys->get_years(uid => current_user->{id});
% if (@years) { % if (@years) {
<ul class="pagination"> <ul class="pagination">
% for my $year (journeys->get_years(uid => current_user->{id})) { % for my $year (@years) {
% my $link_to = $year->[0]; % my $link_to = $year->[0];
% my $text = $year->[1]; % my $text = $year->[1];
% my $class = $link_to eq $current ? 'active' : 'waves-effect'; % my $class = $link_to eq $current ? 'active' : 'waves-effect';