summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-07-16 08:45:41 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-07-16 08:45:41 +0200
commit1e49ecf145598c62d273a432bfba3fa50c921ebd (patch)
tree9dbf19745133c71e9238c4643b258fea50e78000 /templates
parentc19320788f8570ee3f328192360f4f9b6db4c660 (diff)
checked-in view: move timeline link a bit to the bottom
Diffstat (limited to 'templates')
-rw-r--r--templates/_checked_in.html.ep6
-rw-r--r--templates/_timeline_link.html.ep6
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')
-% }
<div class="autorefresh">
<div class="card">
<div class="card-content">
@@ -304,6 +301,9 @@
% }
</div>
</div>
+ % if (@{stash('timeline') // []}) {
+ %= include '_timeline_link', timeline => stash('timeline'), from_checkin => 1
+ % }
% if ($journey->{arr_name}) {
<div class="card" style="margin-top: 3em;">
<div class="card-content">
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 @@
<strong><%= $timeline->[0]->{followee_name} %></strong>
% }
% if (@{$timeline} == 1) {
- ist gerade unterwegs
+ ist gerade <%= stash('from_checkin') ? 'auch' : q{} %> unterwegs
% }
% elsif (@{$timeline} == 2) {
- und <strong><%= $timeline->[1]->{followee_name} %></strong> sind gerade unterwegs
+ und <strong><%= $timeline->[1]->{followee_name} %></strong> sind gerade <%= stash('from_checkin') ? 'auch' : q{} %>unterwegs
% }
% else {
- <strong><%= scalar @{$timeline} %></strong> Accounts sind gerade unterwegs
+ <strong><%= scalar @{$timeline} %></strong> Accounts sind gerade <%= stash('from_checkin') ? 'auch' : q{} %>unterwegs
% }
</a>
</div>