summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2014-04-20 11:41:09 +0200
committerAlex Legler <alex@a3li.li>2014-04-20 11:41:09 +0200
commita41215c4ab710fcbbe4185b9871ccd6982c34f33 (patch)
treed63b60118a092beb5db36f72431b8228afcc1d2c /views/notice.erb
parent...but all visible notices count when calculating the number of items (diff)
downloadinfra-status-a41215c4ab710fcbbe4185b9871ccd6982c34f33.tar.gz
infra-status-a41215c4ab710fcbbe4185b9871ccd6982c34f33.tar.bz2
infra-status-a41215c4ab710fcbbe4185b9871ccd6982c34f33.zip
infra-status 1.5
* Items in the service overview are clickable, filtering notices * Share button * Tyrian update * Human names for services now come from services.rb * New icons
Diffstat (limited to 'views/notice.erb')
-rw-r--r--views/notice.erb9
1 files changed, 5 insertions, 4 deletions
diff --git a/views/notice.erb b/views/notice.erb
index 5a91342..378c95b 100644
--- a/views/notice.erb
+++ b/views/notice.erb
@@ -1,4 +1,4 @@
-<div class="panel <%= panel_class(notice) %>">
+<div class="panel <%= panel_class(notice) %> notice" data-services="<%= notice['affects'].join ' ' %>" data-url="<%= notice.url %>">
<div class="panel-heading">
<h3 class="panel-title"><%= item_icon notice['type']%> <a href="/notice/<%= h notice['id'] %>"><%= h notice['title'] %></a></h3>
</div>
@@ -26,13 +26,14 @@
<% else %>
<div class="col-sm-4"></div>
<% end %>
- <div class="col-sm-4 has-tooltip" data-toggle="tooltip" data-placement="top" title="Estimated time of service recovery">
+ <div class="col-sm-4">
+ <button class="btn btn-default pull-right btn-xs share-btn" data-toggle="popover" data-content="<button onclick='InfraStatus.share(this);' class='btn btn-default btn-sm btn-facebook'><i class='fa fa-facebook'></i></button> <button onclick='InfraStatus.share(this);' class='btn btn-default btn-sm btn-google-plus'><i class='fa fa-google-plus'></i></button> <button onclick='InfraStatus.share(this);' class='btn btn-default btn-sm btn-twitter'><i class='fa fa-twitter'></i></button>"><span class="fa fa-share"></span></button>
<span class="glyphicon glyphicon-ok pull-left" title="Estimated time of service recovery"></span>
- <div style="margin-left: 1.25em;">
+ <div style="margin-left: 1.25em;" class="has-tooltip" data-toggle="tooltip" data-placement="top" title="Estimated time of service recovery">
<% if notice.has_key? 'eta' %>
<em><%= date_format notice['eta'] %></em> (estimated)
<% else %>
- No estimated time of service recovery available.
+ No ETA for service recovery available.
<% end %>
</div>
</div>