templates/stop.html

changeset 55
0f1d046b3f78
parent 48
428cfdf64ccc
child 67
336c750b7b5d
--- a/templates/stop.html	Thu Aug 31 21:30:34 2017 +0300
+++ b/templates/stop.html	Sun Sep 03 14:10:38 2017 +0300
@@ -22,23 +22,27 @@
 	{% endif %}
 </head>
 <body>
-	<h1><img src="../static/pysäkki.png" height="96" /> <span>{{name}}</span></h1>
-	<p id="pysäkki-info">
-	{{region or ""}}
-	—
-	<a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌 ({{location}})</a>
-	</p>
-	{% if cluster %}
-	<p>
-	<a href="../stop_cluster/{{cluster}}">{{tr('nearby-area-schedule', 'misc-text')}}</a>
-	</p>
-	{% endif %}
 	<table class='aikataulu' cellspacing="0">
+	<thead>
 		<tr>
+			<th colspan='4' class='primary-heading'>
+			<span><img src="../static/pysäkki.png" height="96" /> {{name}}</span>
+			</th>
+		</tr>
+		<tr class='headings'>
 			<th class='sarake-aika'>{{tr('time', 'headings')}}</th>
 			<th class='sarake-linja'>{{tr('route', 'headings')}}</th>
 			<th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th>
+			<th>
+				<span class='actions'>
+				<a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌</a>
+				{% if cluster %}
+				<a href="../stop_cluster/{{cluster}}">🞊</a>
+				{% endif %}
+			</th>
 		</tr>
+	</thead>
+	<tbody>
 		{% for halt in schedule %}
 		<tr class="{% if halt['night'] %} yö {% endif %}">
 			<td class='sarake-aika'>
@@ -49,11 +53,12 @@
 			<td class='sarake-linja linja'>
 				<a href="../trip/{{halt['trip']}}">{{halt['route']}}</a>
 			</td>
-			<td class='sarake-määränpää'>
+			<td class='sarake-määränpää' colspan='2'>
 				<a href="../trip/{{halt['trip']}}">{{halt['sign']}}</a>
 			</td>
 		</tr>
 		{% endfor %}
+	</tbody>
 	</table>
 </body>
 </html>

mercurial