|
@@ -43,13 +43,13 @@ |
|
|
%>\ |
|
|
%>\ |
|
|
<%def name="get_status()" filter="trim"> |
|
|
<%def name="get_status()" filter="trim"> |
|
|
<% status, since, uptime, host = collect_status_info() %> |
|
|
<% status, since, uptime, host = collect_status_info() %> |
|
|
<span class="${status}">${status}</span> |
|
|
|
|
|
|
|
|
${"has been" if status == "online" else "is"} <span class="${status}">${status}</span> |
|
|
% if status == "online": |
|
|
% if status == "online": |
|
|
since ${since} (${uptime} uptime) on <tt>${host}</tt> |
|
|
since ${since} (${uptime} uptime) on <tt>${host}</tt> |
|
|
% endif |
|
|
% endif |
|
|
</%def>\ |
|
|
</%def>\ |
|
|
<%include file="/support/header.mako" args="environ=environ, title='EarwigBot Status'"/> |
|
|
<%include file="/support/header.mako" args="environ=environ, title='EarwigBot Status'"/> |
|
|
<h1>EarwigBot Status</h1> |
|
|
<h1>EarwigBot Status</h1> |
|
|
<p>EarwigBot is ${get_status()}.</p> |
|
|
|
|
|
|
|
|
<p>EarwigBot ${get_status()}.</p> |
|
|
<p>Additional information: <a href="http://status.toolserver.org/">status.toolserver.org</a></p> |
|
|
<p>Additional information: <a href="http://status.toolserver.org/">status.toolserver.org</a></p> |
|
|
<%include file="/support/footer.mako" args="environ=environ"/> |
|
|
<%include file="/support/footer.mako" args="environ=environ"/> |