-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.haml
51 lines (44 loc) · 1.52 KB
/
index.haml
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
!!! 5
- @stations=[ 307225, 307081, 307228, ]
%html
%head
%meta(charset="utf-8")
%meta{"http-equiv" => "refresh", :content => "300"}
%link(rel="icon" type="image/png" href="favicon.png")
%link(rel="stylesheet" type="text/css" href="style.css")
%title Povodeň - Voda
%body
%ul#navbar
%li.logo
%li.active <a href='index.html'>Voda</a>
%li <a href='doprava.html'>Doprava</a>
%li <a href='cesty.html'>Cesty</a>
%li <a href='pomoc.html'>Nabídky pomoci</a>
%li <a href='kontakty.html'>Kontakty</a>
.content
%ul#obsah
- @stations.each do |station|
%li
%a(href="##{station}")
=File.read("data/name_#{station}.html")
- @stations.each do |station|
%hr(id="#{station}")
%table.twocolumn
%tr
%td(style="padding: 16px;")
.imgstav
%img(src="data/stav_#{station}.png")
.imgprutok
%img(src="data/prutok_#{station}.png")
%td(style="padding: 16px;")
%table#legend24h(style="margin: 16px;")
=File.read("data/legend_#{station}.html")
%table#table24h
%tr
%th datum a čas
%th stav [cm]
%th průtok [m<sup>3</sup>s<sup>-1</sup>]
%th teplota [°C]
=File.read("data/table_#{station}.html")
%hr
.footer Data poskytuje Český hydrometeorologický ústav. Bez záruky.