summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-12-25 20:00:37 +0100
committerAlex Legler <alex@a3li.li>2015-12-25 20:00:37 +0100
commitebd8448560c18a341b14edf0fdfdf7d01824d619 (patch)
treea0046730accc56f042619e409fcdb3b133584766 /views/notice.erb
parent.gitignore update (diff)
downloadinfra-status-ebd8448560c18a341b14edf0fdfdf7d01824d619.tar.gz
infra-status-ebd8448560c18a341b14edf0fdfdf7d01824d619.tar.bz2
infra-status-ebd8448560c18a341b14edf0fdfdf7d01824d619.zip
Use properly named Notice methods
Diffstat (limited to 'views/notice.erb')
-rw-r--r--views/notice.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/notice.erb b/views/notice.erb
index b7c0ddd..eb740f2 100644
--- a/views/notice.erb
+++ b/views/notice.erb
@@ -3,7 +3,7 @@
<h3 class="panel-title"><%= item_icon notice['type']%> <a href="/notice/<%= h notice['id'] %>"><%= h notice['title'] %></a></h3>
</div>
<div class="panel-body">
- <%= markdown notice.get_content %>
+ <%= markdown notice.content %>
</div>
<div class="panel-footer">
<div class="row">
@@ -11,7 +11,7 @@
<span class="glyphicon glyphicon-send pull-left" title="Notice publication date"></span>
<div style="margin-left: 1.25em"><em><%= date_format notice['created_at'] %></em></div>
</div>
- <% if notice.has_key? 'starts_at' %>
+ <% if notice.key? 'starts_at' %>
<%- diff = ((DateTime.now - notice['starts_at']) * 24 * 60 * 60).to_i %>
<div class="col-sm-4 has-tooltip" data-toggle="tooltip" data-placement="top"
<% if diff < 0 %>
@@ -28,7 +28,7 @@
<div class="col-sm-4 has-tooltip" data-toggle="tooltip" data-placement="top" title="Estimated time of service recovery">
<span class="glyphicon glyphicon-ok pull-left" title="Estimated time of service recovery"></span>
<div style="margin-left: 1.25em;">
- <% if notice.has_key? 'eta' %>
+ <% if notice.key? 'eta' %>
<em><%= date_format notice['eta'] %></em> (estimated)
<% else %>
No ETA for service recovery available.