!!! 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 Voda
%li Doprava
%li Nabídky pomoci
%li Kontakty
.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 [m3s-1]
%th teplota [°C]
=File.read("data/table_#{station}.html")
%hr
.footer Data poskytuje Český hydrometeorologický ústav. Bez záruky.