This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwidget2.mustache
142 lines (121 loc) · 4.58 KB
/
widget2.mustache
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{{{header}}}
{{#data}}
<div class="row-fluid">
<div class="span6">
<h1>{{name__("locale")}}</h1>
{{#contact.coordinates}}
<p><strong class="address"><i class="icon-map-marker"></i>
<a href="//www.openstreetmap.org/?mlat={{contact.coordinnates_lat}}&mlon={{contact.coordinnates_lon}}&zoom=15&layers=Q">
{{contact.street_address.street__("locale")}},
{{contact.street_address.area__("locale")}}
{{contact.street_address.post_code}}
{{contact.street_address.municipality__("locale")}}</a></strong>
(_("View larger map"))</p>
{{/contact.coordinates}}
<p><strong><i class="icon-move"></i>
<a target="_blank" href='//opas.matka.fi/_("routefinder locale")/?to=
{{contact.routefinder_street}},
{{contact.routefinder_municipality}}'>
_("Directions")</a>
</strong>(Matka.fi)</p>
{{#contact.directions__("locale")}}
<p>_("Directions"):
{{contact.directions__("locale")}}</p>
{{/contact.directions__("locale")}}
{{#contact.coordinates}}
<p>
<div id="mapcontainer" class="openlayers-map" data-coordinates="{{contact.coordinates}}"><div id="basicmap"></div></div>
<!-- {{contact.coordinates}} {{contact.map_url__("locale")}} -->
</p>
{{/contact.coordinates}}
<p class="libdescription"><strong class="quotesign">”</strong>{{description__("locale")}}</p>
<dl>
{{#contact.telephones.0.telephone_number}}
<dt>_("Telephone numbers")</dt>
<dd>
{{#contact.telephones}}
<img src="/img/glyphicons_139_phone.png" alt="_("Phone icon")">
<a href="tel:{{telephone_number}}">{{telephone_number}}</a> /
{{#telephone_name__("locale")}}
{{telephone_name__("locale")}}
{{/telephone_name__("locale")}}
{{^telephone_name__("locale")}}
{{telephone_name_fi}}
{{/telephone_name__("locale")}}
<br>
{{/contact.telephones}}
</dd>
{{/contact.telephones.0.telephone_number}}
{{#contact.mail_address.post_box}}
<dt>_("Mail address")</dt>
<dd>
_("P.O. Box")
{{contact.mail_address.post_box}}<br>
{{contact.mail_address.post_code}} {{contact.mail_address.post_office__("locale")}}
</dd>
{{/contact.mail_address.post_box}}
{{^contact.mail_address.post_box}}
<dt>_("Mail address")</dt>
<dd>
{{#contact.mail_address.post_address__("locale")}}
{{contact.mail_address.post_address__("locale")}}<br>
{{/contact.mail_address.post_address__("locale")}}
{{^contact.mail_address.post_address__("locale")}}
{{contact.mail_address.post_address_fi}}<br>
{{/contact.mail_address.post_address__("locale")}}
{{contact.mail_address.post_code}} {{contact.mail_address.post_office__("locale")}}
</dd>
{{/contact.mail_address.post_box}}
{{#contact.email}}
<dt>_("E-mail")</dt>
<dd><i class="icon-envelope"></i> <a href="mailto:{{contact.email}}">{{contact.email}}</a></dd>
{{/contact.email}}
</dl>
</div>
<div class="span6">
<div id="opentimes_large" for="{{id}}" class="opentimes">
{{#neveropen}}
{{/neveropen}}
{{^neveropen}}
{{#opening_hours.has_opening_hours}}
<div class="ld_open_now" style="display: none;">
<h3>_("The library is now")
{{#opening_hours.open_now}}
<strong class="open">_("Open")</strong>
{{/opening_hours.open_now}}
{{^opening_hours.open_now}}
<strong class="closed">_("Closed")</strong>
{{/opening_hours.open_now}}
</h3>
<br>
</div>
<h3 class="week-label">_("Opening hours this week")</h3>
<time itemprop="openingHours">
<table>
{{#opening_hours.open_hours_week}}
{{#today}}
<tr class="opentimes_strong"><td>{{day}}<td> <td>{{time}}<span class="hidden">, </span></tr>
{{/today}}
{{^today}}
<tr><td>{{day}}<td> <td>{{time}}<span class="hidden">, </span></tr>
{{/today}}
{{/opening_hours.open_hours_week}}
</table>
<button class="btn btn-link change-week" monday="{{opening_hours.mondaydate}}" value="prev">_("Previous week")</button>
<button class="btn btn-link change-week" monday="{{opening_hours.mondaydate}}" value="next">_("Next week")</button>
</time>
<br>
<p>
<span id="period_description">
{{opening_hours.period_description}}
</span>
{{/opening_hours.has_opening_hours}}
{{^opening_hours.has_opening_hours}}
{{/opening_hours.has_opening_hours}}
</p>
{{/neveropen}}
</div>
<p><small>_("Last modified"): {{meta.modified}}</small></p>
</div>
{{/data}}
{{{footer}}}