From 1e49ecf145598c62d273a432bfba3fa50c921ebd Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 16 Jul 2023 08:45:41 +0200 Subject: checked-in view: move timeline link a bit to the bottom --- templates/_checked_in.html.ep | 6 +++--- templates/_timeline_link.html.ep | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 2382ac4..2e8b163 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -1,7 +1,4 @@ % my $user = current_user(); -% if (@{stash('timeline') // []}) { - %= include '_timeline_link', timeline => stash('timeline') -% }
@@ -304,6 +301,9 @@ % }
+ % if (@{stash('timeline') // []}) { + %= include '_timeline_link', timeline => stash('timeline'), from_checkin => 1 + % } % if ($journey->{arr_name}) {
diff --git a/templates/_timeline_link.html.ep b/templates/_timeline_link.html.ep index 782906e..a4d0f97 100644 --- a/templates/_timeline_link.html.ep +++ b/templates/_timeline_link.html.ep @@ -4,13 +4,13 @@ <%= $timeline->[0]->{followee_name} %> % } % if (@{$timeline} == 1) { - ist gerade unterwegs + ist gerade <%= stash('from_checkin') ? 'auch' : q{} %> unterwegs % } % elsif (@{$timeline} == 2) { - und <%= $timeline->[1]->{followee_name} %> sind gerade unterwegs + und <%= $timeline->[1]->{followee_name} %> sind gerade <%= stash('from_checkin') ? 'auch' : q{} %>unterwegs % } % else { - <%= scalar @{$timeline} %> Accounts sind gerade unterwegs + <%= scalar @{$timeline} %> Accounts sind gerade <%= stash('from_checkin') ? 'auch' : q{} %>unterwegs % }
-- cgit v1.2.3