瀏覽代碼

Show last updated time in operations.

master
Ben Kurtovic 7 年之前
父節點
當前提交
37fbd63a3c
共有 2 個檔案被更改,包括 12 行新增1 行删除
  1. +6
    -0
      static/campaigns.css
  2. +6
    -1
      templates/campaigns/operation.mako

+ 6
- 0
static/campaigns.css 查看文件

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

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

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


+ 6
- 1
templates/campaigns/operation.mako 查看文件

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

%>
<%inherit file="../_default.mako"/>
<%namespace file="renderers.mako" import="render_summary"/>
@@ -51,3 +52,7 @@
</div>
% endif
</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…
取消
儲存