Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
Move incidents in past week to left column below alerts and increase …
Browse files Browse the repository at this point in the history
…font size
  • Loading branch information
Andy Driver committed Jun 12, 2015
1 parent c8febcd commit eee1741
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 5 additions & 1 deletion public/css/app.css
Expand Up @@ -137,4 +137,8 @@ ul.contact-methods li.contact-method {
.duty_manager {
background-color: #0070f0;
color: #fff;
}
}

#past_week {
font-size: 3rem;
}
4 changes: 2 additions & 2 deletions views/alerts.erb
@@ -1,4 +1,4 @@
<div id="alerts" class="column">
<div id="alerts">
<h2>Alerts</h2>
<ul>
<%if @alerts.any? %>
Expand All @@ -7,4 +7,4 @@
<li class="good"> No alerts to report </li>
</ul>
<% end %>
</div>
</div>
10 changes: 6 additions & 4 deletions views/index.erb
Expand Up @@ -2,17 +2,19 @@
<html lang=en-us>

<head>
<meta http-equiv="refresh" content="5">
<%#<meta http-equiv="refresh" content="5">%>
<link rel="stylesheet" href="css/app.css" media="screen">
</head>

<body class="<%unless @alerts.empty? %>alert<% end %>
<%if @incident_mode %>incident-mode<% end %>">
<div class="container">
<%= partial(:incident_mode) %>
<%= partial(:alerts) %>
<%= partial(:incident_mode) %>
<div class="column">
<%= partial(:alerts) %>
<%= partial(:past_week) %>
</div>
<%= partial(:persons) %>
<%= partial(:past_week) %>
</div>
</body>

Expand Down
2 changes: 1 addition & 1 deletion views/past_week.erb
@@ -1,4 +1,4 @@
<div id="past_week" class="column">
<div id="past_week">
<h2>Past week</h2>
<%= @incidents_in_past_week %> incidents
</div>

0 comments on commit eee1741

Please sign in to comment.