* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2013-11-11 17:04 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2013-11-11 17:04 UTC (permalink / raw
To: gentoo-commits
commit: 2d5bb0c41d8fb5660a20e95fd97d7bd1edde84d6
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Mon Nov 11 17:03:52 2013 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Mon Nov 11 17:03:52 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=2d5bb0c4
Only display active notices
---
views/index.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/index.erb b/views/index.erb
index a4ac641..beea7c0 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -94,4 +94,4 @@
<h2>Maintenance and Outage Notices</h2>
-<%= partial :notice, :collection => NoticeStore.instance.notices %>
\ No newline at end of file
+<%= partial :notice, :collection => NoticeStore.instance.active_notices %>
\ No newline at end of file
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2013-11-11 17:22 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2013-11-11 17:22 UTC (permalink / raw
To: gentoo-commits
commit: 833ae865004a421a12909df74cf825570e1d622b
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Mon Nov 11 17:21:53 2013 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Mon Nov 11 17:21:53 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=833ae865
Add piwik code
---
views/layout.erb | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/views/layout.erb b/views/layout.erb
index f3917a9..7d90156 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -100,5 +100,18 @@
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/bootstrap.js"></script>
+<script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(["trackPageView"]);
+ _paq.push(["enableLinkTracking"]);
+
+ (function() {
+ var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.gentoo.org/";
+ _paq.push(["setTrackerUrl", u+"piwik.php"]);
+ _paq.push(["setSiteId", "5"]);
+ var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
+ g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
+ })();
+</script>
</body>
</html>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2013-11-12 9:21 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2013-11-12 9:21 UTC (permalink / raw
To: gentoo-commits
commit: 5d51cae0c9cd12fa49fc3d5b47f5366ada9d59db
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Tue Nov 12 09:21:02 2013 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 09:21:02 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=5d51cae0
Link to favicon
Reported-by: ercpe <AT> gentoo.org
---
views/layout.erb | 1 +
1 file changed, 1 insertion(+)
diff --git a/views/layout.erb b/views/layout.erb
index 7d90156..6eb701e 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<link href="/assets/css/bootstrap.css" rel="stylesheet" media="screen">
+ <link rel="icon" href="http://www.gentoo.org/favicon.ico" type="image/x-icon">
</head>
<body>
<header>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
2014-01-18 12:10 Alex Legler
@ 2014-01-16 16:43 ` Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-01-16 16:43 UTC (permalink / raw
To: gentoo-commits
commit: c0d9241f7c1ebbfbd0e8ab0967b621da5bac8741
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Jan 11 11:18:10 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Jan 11 11:18:10 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=c0d9241f
Remove header buttons on XS screens
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index 6eb701e..0085139 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -13,7 +13,7 @@
<div class="site-title">
<div class="container">
<div class="row">
- <div class="site-title-buttons">
+ <div class="site-title-buttons hidden-xs">
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-primary">Get Gentoo!</button>
<div class="btn-group btn-group-sm">
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-01-16 16:43 Alex Legler
2014-01-18 12:10 ` Alex Legler
0 siblings, 1 reply; 12+ messages in thread
From: Alex Legler @ 2014-01-16 16:43 UTC (permalink / raw
To: gentoo-commits
commit: d65402b7f98fd8b9b900e54ff7f4c8013fbda4ad
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Tue Jan 14 16:43:03 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Tue Jan 14 16:43:03 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=d65402b7
Rework footer (2)
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index ca92c8e..cc2dcee 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -81,7 +81,7 @@
<p>
Status data updated at <em><%= date_format ServiceRegistry.instance.load_date %>.</em><br />
Notices updated at <em><%= date_format NoticeStore.instance.load_date %>.</em><br />
- Served by <em><%= Socket.gethostname == 'avocet' ? 'infra-status1' : 'infra-status2' %></em>
+ Served by <em><%= Socket.gethostname == 'avocet' ? 'infra-status-web1' : 'infra-status-web2' %>.</em>
</p>
<p>
Fugue iconset by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>.
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-01-18 12:10 Alex Legler
2014-01-16 16:43 ` Alex Legler
0 siblings, 1 reply; 12+ messages in thread
From: Alex Legler @ 2014-01-18 12:10 UTC (permalink / raw
To: gentoo-commits
commit: c0d9241f7c1ebbfbd0e8ab0967b621da5bac8741
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Jan 11 11:18:10 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Jan 11 11:18:10 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=c0d9241f
Remove header buttons on XS screens
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index 6eb701e..0085139 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -13,7 +13,7 @@
<div class="site-title">
<div class="container">
<div class="row">
- <div class="site-title-buttons">
+ <div class="site-title-buttons hidden-xs">
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-primary">Get Gentoo!</button>
<div class="btn-group btn-group-sm">
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
2014-01-16 16:43 Alex Legler
@ 2014-01-18 12:10 ` Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-01-18 12:10 UTC (permalink / raw
To: gentoo-commits
commit: d65402b7f98fd8b9b900e54ff7f4c8013fbda4ad
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Tue Jan 14 16:43:03 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Tue Jan 14 16:43:03 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=d65402b7
Rework footer (2)
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index ca92c8e..cc2dcee 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -81,7 +81,7 @@
<p>
Status data updated at <em><%= date_format ServiceRegistry.instance.load_date %>.</em><br />
Notices updated at <em><%= date_format NoticeStore.instance.load_date %>.</em><br />
- Served by <em><%= Socket.gethostname == 'avocet' ? 'infra-status1' : 'infra-status2' %></em>
+ Served by <em><%= Socket.gethostname == 'avocet' ? 'infra-status-web1' : 'infra-status-web2' %>.</em>
</p>
<p>
Fugue iconset by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>.
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-01-18 12:29 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-01-18 12:29 UTC (permalink / raw
To: gentoo-commits
commit: 4a3698d6925b790a22a5aaa071f5be500aa46d39
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Jan 18 12:29:21 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Jan 18 12:29:21 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=4a3698d6
update tyrian
---
views/layout.erb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/views/layout.erb b/views/layout.erb
index cc2dcee..be50e02 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -33,6 +33,8 @@
<a href="http://planet.gentoo.org/" title="Find out what's going on in the developer community">Planet</a>
</li>
<li><a href="http://sources.gentoo.org/" title="Browse our source code">Sources</a></li>
+ <li class="divider"></li>
+ <li><a href="http://infra-status.gentoo.org/" title="Get updates on the services provided by Gentoo">Infra Status</a></li>
</ul>
</div>
</div>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-04-17 16:41 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-04-17 16:41 UTC (permalink / raw
To: gentoo-commits
commit: 15253a210025865dfae22996efe2ea1dff3c8269
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Thu Apr 17 16:41:31 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Thu Apr 17 16:41:31 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=15253a21
Notice footer rework
---
views/notice.erb | 37 +++++++++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 6 deletions(-)
diff --git a/views/notice.erb b/views/notice.erb
index c27f802..5a91342 100644
--- a/views/notice.erb
+++ b/views/notice.erb
@@ -6,11 +6,36 @@
<%= markdown notice.get_content %>
</div>
<div class="panel-footer">
- <span class="pull-right">Posted at <em><%= date_format notice['created_at'] %></em></span>
- <% if notice.has_key? 'eta' %>
- <strong>Estimated time of service recovery: <em><%= date_format notice['eta'] %></em></strong>
- <% else %>
- <strong>No estimated time of service recovery available.</strong>
- <% end %>
+ <div class="row">
+ <div class="col-sm-4 has-tooltip" data-toggle="tooltip" data-placement="top" title="Notice publication date">
+ <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' %>
+ <div class="col-sm-4 has-tooltip" data-toggle="tooltip" data-placement="top" title="Maintenance start time">
+ <% diff = ((DateTime.now - notice['starts_at']) * 24 * 60 * 60).to_i %>
+ <span class="glyphicon glyphicon-wrench pull-left" title="Maintenance start time"></span>
+ <div style="margin-left: 1.25em;"><em><%= date_format notice['starts_at'] %></em><br>
+ <% if diff < 0 %>
+ (in <em><%= humanize(-diff) %></em>)
+ <% else %>
+ (<em><%= humanize(diff) %></em> ago)
+ <% end %>
+ </div>
+ </div>
+ <% 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">
+ <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' %>
+ <em><%= date_format notice['eta'] %></em> (estimated)
+ <% else %>
+ No estimated time of service recovery available.
+ <% end %>
+ </div>
+ </div>
+ </div>
</div>
</div>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-04-17 16:45 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-04-17 16:45 UTC (permalink / raw
To: gentoo-commits
commit: a1a617007788faa5e49a68a46bd43a331cd05d88
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Thu Apr 17 16:45:15 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Thu Apr 17 16:45:15 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=a1a61700
Right-align ETA in desktop browsers.
TODO: Push this to tyrian
---
views/layout.erb | 7 +++++++
views/notice.erb | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index c31a71a..338f620 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -7,6 +7,13 @@
<meta name="description" content="">
<link href="/assets/css/bootstrap.css" rel="stylesheet" media="screen">
<link rel="icon" href="http://www.gentoo.org/favicon.ico" type="image/x-icon">
+ <style type="text/css">
+ @media (min-width: 1200px) {
+ .text-right-lg {
+ text-align: right;
+ }
+ }
+ </style>
</head>
<body>
<header>
diff --git a/views/notice.erb b/views/notice.erb
index 5a91342..9b1ff11 100644
--- a/views/notice.erb
+++ b/views/notice.erb
@@ -26,7 +26,7 @@
<% 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 has-tooltip text-right-lg" 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' %>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-04-17 16:49 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-04-17 16:49 UTC (permalink / raw
To: gentoo-commits
commit: 691f943b9181ccfe5fcc9e0ee708c2ed979b7101
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Thu Apr 17 16:49:50 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Thu Apr 17 16:49:50 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=691f943b
Revert "Right-align ETA in desktop browsers."
This reverts commit a1a617007788faa5e49a68a46bd43a331cd05d88.
---
views/layout.erb | 7 -------
views/notice.erb | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/views/layout.erb b/views/layout.erb
index 338f620..c31a71a 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -7,13 +7,6 @@
<meta name="description" content="">
<link href="/assets/css/bootstrap.css" rel="stylesheet" media="screen">
<link rel="icon" href="http://www.gentoo.org/favicon.ico" type="image/x-icon">
- <style type="text/css">
- @media (min-width: 1200px) {
- .text-right-lg {
- text-align: right;
- }
- }
- </style>
</head>
<body>
<header>
diff --git a/views/notice.erb b/views/notice.erb
index 9b1ff11..5a91342 100644
--- a/views/notice.erb
+++ b/views/notice.erb
@@ -26,7 +26,7 @@
<% else %>
<div class="col-sm-4"></div>
<% end %>
- <div class="col-sm-4 has-tooltip text-right-lg" data-toggle="tooltip" data-placement="top" title="Estimated time of service recovery">
+ <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' %>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] proj/infra-status:master commit in: views/
@ 2014-04-27 13:11 Alex Legler
0 siblings, 0 replies; 12+ messages in thread
From: Alex Legler @ 2014-04-27 13:11 UTC (permalink / raw
To: gentoo-commits
commit: b52b1bbd9459187f5fb9629b4bfee14672804aff
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Apr 27 13:10:38 2014 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Apr 27 13:10:38 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/infra-status.git;a=commit;h=b52b1bbd
Load site_logo.png from CDN as well
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index 7aa4891..1a18d87 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -39,7 +39,7 @@
</div>
</div>
<div class="logo">
- <img src="/assets/img/site-logo.png" alt="Gentoo Linux Logo"/>
+ <img src="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/site-logo.png" alt="Gentoo Linux Logo"/>
<span class="site-label">Infra Status</span>
</div>
</div>
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-04-27 13:11 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18 12:29 [gentoo-commits] proj/infra-status:master commit in: views/ Alex Legler
-- strict thread matches above, loose matches on Subject: below --
2014-04-27 13:11 Alex Legler
2014-04-17 16:49 Alex Legler
2014-04-17 16:45 Alex Legler
2014-04-17 16:41 Alex Legler
2014-01-18 12:10 Alex Legler
2014-01-16 16:43 ` Alex Legler
2014-01-16 16:43 Alex Legler
2014-01-18 12:10 ` Alex Legler
2013-11-12 9:21 Alex Legler
2013-11-11 17:22 Alex Legler
2013-11-11 17:04 Alex Legler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox