]> CyberLeo.Net >> Repos - CDN/status.git/blob - views/index.erb
Indicate staleness in check view
[CDN/status.git] / views / index.erb
1 <!DOCTYPE html PUBLIC>
2 <html>
3  <head>
4   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
5   <style type="text/css">
6 .up {
7   color: black;
8   background-color: #0F0;
9 }
10 .up.stale {
11   background-color: #080;
12 }
13 .down {
14   color: white;
15   background-color: #F00;
16   font-weight: bold;
17 }
18 .down.stale {
19   background-color: #800;
20 }
21   </style>
22  </head>
23  <body>
24   <div>
25 <% results.each do |result| %>
26    <%= erb :result, :locals => { :result => result } %>
27 <% end %>
28   </div>
29  </body>
30 </html>