summaryrefslogtreecommitdiff
path: root/templates/history.html.ep
blob: 10cc59635a257582b34c8caed671dc698eaa3d12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<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">
		<ul>
			<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>
		</ul>
	</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');
% }