-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.html
45 lines (45 loc) · 1.83 KB
/
display.html
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
35
36
37
38
39
40
41
42
43
44
45
<h1>Wo ist mein Punsch?</h1>
{if $closePunsch.count() > 0}
{loop $punsch in $closePunsch}
<div class="punschContainer">
<h1>{$punsch.punsch.properties.BEZEICHNUNG}</h1>
<p>{$punsch.punsch.properties.OEFFNUNGSZEIT.ignoreContext()}</p>
<span class="button map"><a href="http://maps.google.com/?q={$punsch.punsch.properties.ADRESSE}" target="_blank">Karte</a></span>
<span class="button link"><a href="{$punsch.punsch.properties.WEBLINK1.ignoreContext()}" target="_blank">Webseite</a></span>
<div style="clear: both;"></div>
<div class="routeContainer">
{loop $route in $punsch.route}
<div class="partialRouteContainer">
<div class="partialRouteBox meansOfTransport {$route.cssSelector}">
<span>
{if $route.isWalkWay < 2}
F
{else}
{$route.meansOfTransport.linenumber}
{endif}
</span>
</div>
<div class="partialRouteBox partialRoutePoints">
{if $route.isWalkWay > 1}
<b>Richtung: {$route.meansOfTransport.direction}</b><br />
{endif}
{$route.origin.time} - {$route.origin.name}<br />
{$route.destination.time} - {$route.destination.name}
</div>
<div style="clear: both;"></div>
</div>
{endloop}
</div>
</div>
{endloop}
{else}
<h3>Kein Punsch in der Nähe</h3>
<p>Das kann mehrere Gründe haben:</p>
<ol>
<li>Du befindest dich nicht in Wien.</li>
<li>In deiner Umgebung befindet sich kein Adventmarkt, den die Stadt Wien in ihrem Datensatz listet.</li>
<li>Dein Standort ist zu ungenau.</li>
</ol>
<p>Trifft alles nicht zu? Kontaktiere <a href="http://www.twitter.com/nitric_ware">@nitric_ware</a> auf Twitter.</p>
<div class="bugbutton">Fehlerbericht senden</div>
{endif}