mirror of
https://github.com/brmlab/povoden.git
synced 2025-06-08 10:14:20 +02:00
51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
!!! 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='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.
|