-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html.erb
18 lines (18 loc) · 1.14 KB
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="intro info">
<h2><%= params[:country] %></h2>
<p>Realtime disease detection <a href="http://diycity.org/sickcity-realtime-disease-detection-your-city">by DIYCity</a></p>
</div>
<ul class="list">
<% @cities.each do |city|%>
<li><a href="/<%= city.country %>/<%= city.name.gsub('.','%2E') %>"><span class="city"><%= city.name %></span> <span id="city_graph_<%= city.id %>" class="tiny_graph"><% @trend[city.id].each do |hour| %><%= hour %>,<% end %></span></a></li>
<% end %>
</ul>
<a id="map" href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<%= @location.latitude %>,<%= @location.longitude %>"><img src="http://maps.google.com/staticmap?center=<%= @location.latitude %>,<%= @location.longitude %>&zoom=3&size=500x213&maptype=mobile&key=<%= GOOGLE_API_KEY %>&sensor=false" alt="Map" /></a>
<div class="navbar">
<a class="back home" href="/">Countries<img src="/images/bkr.png" /></a>
<a class="forward button home" href="/"><img src="/images/bk2l.png" /><img class="buttonimage" src="/images/logosmall.png" /></a>
<h1><%= params[:country] %></h1>
</div>
<script type="text/javascript">
$('.tiny_graph').sparkline();
</script>