summaryrefslogtreecommitdiff
path: root/templates/exception.html.ep
blob: 9b8697c7e108a0c3886371540e460467065e9ba5 (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
30
31
32
33
34
<div class="row">
	<div class="col s12">
		<div class="card caution-color">
			<div class="card-content white-text">
				<span class="card-title">500 Internal Server Error</span>
				<p>Das hätte nicht passieren sollen.</p>
			</div>
			<div class="card-action">
				<a href="https://github.com/derf/travelynx/issues" class="waves-effect waves-light btn-flat white-text">
					<i class="material-icons left">bug_report</i>Bug melden
				</a>
			</div>
		</div>
	</div>
</div>
<div class="row">
	<div class="col s12">
		<p>Angaben für einen Bug-Report:</p>
		<p style="font-family: monospace;">
			Timestamp:
			%= DateTime->now(time_zone => 'Europe/Berlin')->strftime("%d/%b/%Y:%H:%M:%S %z")
			<br/><br/>
			% if (ref($exception)) {
				Trace:<br/>
				% for my $line (split(qr{\n}, $exception->message)) {
					<%= $line %><br/>
				% }
			% }
			% else {
				Message: <%= $exception %>
			% }
		</p>
	</div>
</div>