summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-27 22:04:09 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-27 22:04:09 +0100
commit3156d5f372707df965933b1885137857652466f5 (patch)
tree23fc2f643fea0326d4a2614d1ed18587a896f898 /templates
parent9dfe1c60ab417556798ad12fa3ec86671d63f5a6 (diff)
review: add top and bottom trips
Diffstat (limited to 'templates')
-rw-r--r--templates/year_in_review.html.ep18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/year_in_review.html.ep b/templates/year_in_review.html.ep
index 548245e..456fb37 100644
--- a/templates/year_in_review.html.ep
+++ b/templates/year_in_review.html.ep
@@ -144,6 +144,24 @@
</div>
<div class="carousel-item" href="#six">
<h2>Last, but not least</h2>
+ % if ($review->{top_trip_count}) {
+ <p>
+ <strong><%= $review->{top_trip_percent_h} %></strong> deiner Check-Ins konzentrierten sich auf diese Strecken:<br/>
+ % for my $i (0 .. $#{$review->{top_trips}}) {
+ % my $trip = $review->{top_trips}[$i];
+ <%= $trip->[0] %> → <%= $trip->[1] %><br/>
+ % }
+ </p>
+ % }
+ % if ($review->{single_trip_count}) {
+ <p>
+ <strong><%= $review->{single_trip_percent_h} %></strong> aller Verbindungen bist du nur genau einmal gefahren. Zum Beispiel:<br/>
+ % for my $i (0 .. $#{$review->{single_trips}}) {
+ % my $trip = $review->{single_trips}[$i];
+ <%= $trip->[0] %> → <%= $trip->[1] %><br/>
+ % }
+ </p>
+ % }
<p><em>Thank you for traveling with travelynx</em></p>
</div>
</div>