From e61550f751feb132aa1a51cd860837d753e9dcd7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Oct 2020 21:08:22 +0200 Subject: Move remaining journeys queries to journeys model class --- templates/_history_months.html.ep | 2 +- templates/_history_years.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/_history_months.html.ep b/templates/_history_months.html.ep index 6a83d74..a707943 100644 --- a/templates/_history_months.html.ep +++ b/templates/_history_months.html.ep @@ -1,7 +1,7 @@
    - % for my $month (history_months()) { + % for my $month (journeys->get_months(uid => current_user->{id})) { % my $link_to = $month->[0]; % my $text = $month->[1]; % my $class = $link_to eq $current ? 'active' : 'waves-effect'; diff --git a/templates/_history_years.html.ep b/templates/_history_years.html.ep index 768c438..e0b1357 100644 --- a/templates/_history_years.html.ep +++ b/templates/_history_years.html.ep @@ -1,7 +1,7 @@
      - % for my $year (history_years()) { + % for my $year (journeys->get_years(uid => current_user->{id})) { % my $link_to = $year->[0]; % my $text = $year->[1]; % my $class = $link_to eq $current ? 'active' : 'waves-effect'; -- cgit v1.2.3