Browse Source

Show last updated time in operations.

master
Ben Kurtovic 8 years ago
parent
commit
37fbd63a3c
2 changed files with 12 additions and 1 deletions
  1. +6
    -0
      static/campaigns.css
  2. +6
    -1
      templates/campaigns/operation.mako

+ 6
- 0
static/campaigns.css View File

@@ -210,6 +210,12 @@ h2 .disabled-info {
color: #AAA; color: #AAA;
} }


.last-updated {
margin-bottom: 1em;
font-size: 90%;
font-style: italic;
}

@media (min-width: 800px) { @media (min-width: 800px) {
#operations { #operations {
margin: 1em 0; margin: 1em 0;


+ 6
- 1
templates/campaigns/operation.mako View File

@@ -1,5 +1,6 @@
<%! <%!
from calefaction.format import format_isk
from calefaction.format import format_isk, format_utctime

%> %>
<%inherit file="../_default.mako"/> <%inherit file="../_default.mako"/>
<%namespace file="renderers.mako" import="render_summary"/> <%namespace file="renderers.mako" import="render_summary"/>
@@ -51,3 +52,7 @@
</div> </div>
% endif % endif
</div> </div>
<div class="last-updated">
<% last_updated, _ = g.campaign_db.check_operation(cname, opname) %>
Last updated: <abbr title="${last_updated.strftime("%Y-%m-%d %H:%M:%S")}">${format_utctime(last_updated) | h}</abbr>
</div>

Loading…
Cancel
Save