travelynx/templates/history.html.ep
2019-04-24 15:15:53 +02:00

32 lines
987 B
Text

<h1>Fahrten</h1>
<div class="row">
<div class="col s12">
Hier finden sich alle bisherigen Zugfahrten und Statistiken für jedes
Jahr und jeden Monat.
</div>
</div>
<div class="row">
<div class="col s12 m12 l4 center-align">
<a href="/cancelled" class="waves-effect waves-light btn"><i class="material-icons left">cancel</i> Zugausfälle</a>
</div>
<div class="col s12 m12 l4">
&nbsp;
</div>
<div class="col s12 m12 l4 center-align">
<a href="/history.json" class="waves-effect waves-light btn"><i class="material-icons left">cloud</i> JSON-Export</a>
</div>
</div>
<h2>Nach Jahr</h2>
% my $since = get_user_data()->{registered_at};
% my $now = DateTime->now(time_zone => 'Europe/Berlin');
%= include '_history_years', current => '', since => $since->clone, now => $now;
<h2>Nach Monat</h2>
%= include '_history_months', current => '', since => $since->clone, now => $now;
% if (stash('statistics')) {
%= include '_history_stats', stats => stash('statistics');
% }