summaryrefslogtreecommitdiff
path: root/templates/_timeline_link.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_timeline_link.html.ep')
-rw-r--r--templates/_timeline_link.html.ep16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/_timeline_link.html.ep b/templates/_timeline_link.html.ep
new file mode 100644
index 0000000..782906e
--- /dev/null
+++ b/templates/_timeline_link.html.ep
@@ -0,0 +1,16 @@
+<div>
+ <a href="/timeline/in-transit">
+ % if (@{$timeline} <= 2) {
+ <strong><%= $timeline->[0]->{followee_name} %></strong>
+ % }
+ % if (@{$timeline} == 1) {
+ ist gerade unterwegs
+ % }
+ % elsif (@{$timeline} == 2) {
+ und <strong><%= $timeline->[1]->{followee_name} %></strong> sind gerade unterwegs
+ % }
+ % else {
+ <strong><%= scalar @{$timeline} %></strong> Accounts sind gerade unterwegs
+ % }
+ </a>
+</div>