_history_years: remove redundant SQL request
This commit is contained in:
parent
a5ab4fa6a8
commit
025b58126f
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue