diff options
author | 2013-11-11 11:33:12 +0100 | |
---|---|---|
committer | 2013-11-11 11:33:12 +0100 | |
commit | d733c0abf2d568319d3b19e8806816346760737e (patch) | |
tree | 446dcee6f606ecc95db2e66ad393925d89372622 /views | |
parent | .gitignore (diff) | |
download | infra-status-d733c0abf2d568319d3b19e8806816346760737e.tar.gz infra-status-d733c0abf2d568319d3b19e8806816346760737e.tar.bz2 infra-status-d733c0abf2d568319d3b19e8806816346760737e.zip |
v2
Diffstat (limited to 'views')
-rw-r--r-- | views/index.erb | 97 | ||||
-rw-r--r-- | views/layout.erb | 104 | ||||
-rw-r--r-- | views/notice.erb | 16 |
3 files changed, 217 insertions, 0 deletions
diff --git a/views/index.erb b/views/index.erb new file mode 100644 index 0000000..a4ac641 --- /dev/null +++ b/views/index.erb @@ -0,0 +1,97 @@ +<h1 class="first-header">Gentoo Infrastructure Status</h1> + +<p>This data is aggregated from our automated service monitoring system as well as the outage and maintenance notices posted below.</p> + +<h2>Service Availability Overview</h2> + +<div class="row"> + <div class="col-lg-4"> + <h3>Community Services</h3> + <ul class="list-group"> + <li class="list-group-item"> + <%= service_info 'www' %> + gentoo.org Website + </li> + <li class="list-group-item"> + <%= service_info 'forums' %> + Forums + </li> + <li class="list-group-item"> + <%= service_info 'wiki' %> + Wiki + </li> + <li class="list-group-item"> + <%= service_info 'planet' %> + Planet Gentoo + </li> + <li class="list-group-item"> + <%= service_info 'pgo' %> + Package Database + </li> + <li class="list-group-item"> + <%= service_info 'lists' %> + Mailing Lists + </li> + <li class="list-group-item"> + <%= service_info 'archives' %> + Mailing List Archives + </li> + </ul> + </div> + <div class="col-lg-4"> + <h3>Development Services</h3> + <ul class="list-group"> + <li class="list-group-item"> + <%= service_info 'cvs' %> + CVS Server + </li> + <li class="list-group-item"> + <%= service_info 'bugzilla' %> + Bugzilla + </li> + <li class="list-group-item"> + <%= service_info 'rsync' %> + Master <tt>rsync</tt> Mirror + </li> + <li class="list-group-item"> + <%= service_info 'devmanual' %> + Developer Manual + </li> + <li class="list-group-item"> + <%= service_info 'overlays' %> + Overlays + </li> + <li class="list-group-item"> + <%= service_info 'sources' %> + Source Code Browser + </li> + </ul> + </div> + <div class="col-lg-4"> + <h3>Developer Resources</h3> + <ul class="list-group"> + <li class="list-group-item"> + <%= service_info 'dgo_ssh' %> + <tt>dev.gentoo.org</tt> Shell Access + </li> + <li class="list-group-item"> + <%= service_info 'dgo_http' %> + <tt>dev.gentoo.org</tt> Web Hosting + </li> + <li class="list-group-item"> + <%= service_info 'dgo_smtp' %> + In-/Outbound Email (SMTP) + </li> + <li class="list-group-item"> + <%= service_info 'dgo_mbox' %> + Mailbox Access (POP/IMAP) + </li> + </ul> + </div> + +</div> + + +<h2>Maintenance and Outage Notices</h2> + +<%= partial :notice, :collection => NoticeStore.instance.notices %>
\ No newline at end of file diff --git a/views/layout.erb b/views/layout.erb new file mode 100644 index 0000000..ce59e33 --- /dev/null +++ b/views/layout.erb @@ -0,0 +1,104 @@ +<!DOCTYPE html> +<html> +<head> + <title>Gentoo Infrastructure Status</title> + <meta charset="utf-8"> + <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"> +</head> +<body> +<header> + <div class="site-title"> + <div class="container"> + <div class="row"> + <div class="site-title-buttons"> + <div class="btn-group btn-group-sm"> + <button type="button" class="btn btn-primary">Get Gentoo!</button> + <div class="btn-group btn-group-sm"> + <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> + <span class="glyphicon glyphicon-globe"></span> gentoo.org sites <span class="caret"></span> + </button> + <ul class="dropdown-menu"> + <li><a href="http://www.gentoo.org/">gentoo.org</a></li> + <li><a href="http://wiki.gentoo.org/" title="Find and contribute documentation">Wiki</a></li> + <li><a href="https://bugs.gentoo.org/" title="Report issues and find common issues">Bugs</a></li> + <li><a href="http://forums.gentoo.org/" title="Discuss with the community">Forums</a></li> + <li><a href="http://packages.gentoo.org/" title="Find software for your Gentoo">Packages</a></li> + <li class="divider"></li> + <li><a href="http://archives.gentoo.org/" title="Read up on past discussions">Archives</a></li> + <li><a href="http://overlays.gentoo.org/" title="Collaborate on maintaining packages">Overlays</a></li> + <li> + <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> + </ul> + </div> + </div> + </div> + <div class="logo"> + <img src="/assets/img/site-logo.png" alt="Gentoo Linux Logo"/> + <span class="site-label">Infra Status</span> + </div> + </div> + </div> + </div> + <nav class="navbar navbar-default navbar-static-top clearfix" role="navigation"> + <div class="container"> + <div class="row"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + </div> + <div class="collapse navbar-collapse navbar-main-collapse"> + <ul class="nav navbar-nav"> + <li><a href="/">Home</a></li> + <li><a href="/feed.atom"><span class="glyphicon glyphicon-bullhorn"></span> Atom Feed</a></li> + </ul> + </div> + </div> + </div> + </nav> +</header> + +<div class="container"> + <div class="row"> + <div class="col-lg-12"> + <%= yield %> + </div> + </div> +</div> + +<footer> + <div class="container"> + <div class="row"> + <div class="col-md-8"> + Fugue iconset by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>. + </div> + <div class="col-md-4"> + <strong>Questions or comments?</strong><br/> + Please feel free to <a href="mailto:infra@gentoo.org">contact us</a>. + </div> + </div> + <div class="row"> + <div class="col-md-12"> + <strong>© 2001-2013 Gentoo Foundation, Inc.</strong><br/> + <small> + Gentoo is a trademark of the Gentoo Foundation, Inc. + The contents of this document, unless otherwise expressly stated, are licensed under the + <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">CC-BY-SA-3.0</a> license. + The <a href="#">Gentoo Name and Logo Usage Guidelines</a> apply. + </small> + </div> + </div> + </div> +</footer> + +<script src="http://code.jquery.com/jquery.js"></script> +<script src="/assets/js/bootstrap.js"></script> +</body> +</html> diff --git a/views/notice.erb b/views/notice.erb new file mode 100644 index 0000000..c27f802 --- /dev/null +++ b/views/notice.erb @@ -0,0 +1,16 @@ +<div class="panel <%= panel_class(notice) %>"> + <div class="panel-heading"> + <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 %> + </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> +</div> |