diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-12-27 22:04:09 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-27 22:04:09 +0100 |
commit | 3156d5f372707df965933b1885137857652466f5 (patch) | |
tree | 23fc2f643fea0326d4a2614d1ed18587a896f898 /templates/year_in_review.html.ep | |
parent | 9dfe1c60ab417556798ad12fa3ec86671d63f5a6 (diff) |
review: add top and bottom trips
Diffstat (limited to 'templates/year_in_review.html.ep')
-rw-r--r-- | templates/year_in_review.html.ep | 18 |
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> |