2019-04-07 16:44:33 +00:00
|
|
|
<h1>Fahrten</h1>
|
|
|
|
|
2019-03-19 20:23:06 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
2019-04-07 16:44:33 +00:00
|
|
|
Hier finden sich alle bisherigen Zugfahrten und Statistiken für jedes
|
|
|
|
Jahr und jeden Monat.
|
2019-03-19 20:23:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-07 16:44:33 +00:00
|
|
|
|
2018-10-13 12:40:19 +00:00
|
|
|
<div class="row">
|
2019-03-09 13:35:23 +00:00
|
|
|
<div class="col s12">
|
|
|
|
<ul>
|
2019-04-07 16:44:33 +00:00
|
|
|
<li><a href="/history.json">JSON-Export aller Zugfahrten</a> (Das Datenlayout ist noch nicht final)</li>
|
|
|
|
<li><a href="/cancelled">Ausgefallene Züge</a></li>
|
2019-03-09 13:35:23 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-07 16:44:33 +00:00
|
|
|
|
|
|
|
<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');
|
2019-03-19 20:23:06 +00:00
|
|
|
% }
|