Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit 8cd0f6dd59d40d1947b9e51310fbf57b728bf495
Author: Matt Domsch <matt(a)domsch.com>
Date: Fri Jul 19 16:02:38 2013 -0500
publiclist: add utcnow timestamp to bottom of each page
---------------------------------------------------------------
server/generate-publiclist | 4 +++-
server/mirrormanager/templates/publiclist.kid | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/server/generate-publiclist b/server/generate-publiclist
index 0c27be8..0e1e22f 100755
--- a/server/generate-publiclist
+++ b/server/generate-publiclist
@@ -5,6 +5,7 @@ pkg_resources.require("TurboGears")
from sqlobject import *
import sys, os, string, errno
+import datetime as dt
import turbogears
import turbogears.util as tg_util
from turbogears import view, database, errorhandling, config
@@ -177,7 +178,8 @@ def generate_one_html(engine, pvaMatrix, productname=None,
vername=None, archnam
pva=pva,
products=list(Product.select(orderBy='name')),
arches=publiclist_arches(),
- report_problems_to_email =
config.get('mirrormanager.report_problems_to_email', 'webmaster'))
+ report_problems_to_email =
config.get('mirrormanager.report_problems_to_email', 'webmaster'),
+ utcnow = dt.datetime.utcnow())
t=engine.load_template('mirrormanager.templates.publiclist')
out_html = _process_output(template_data, template=t, format='html',
engine=engine)
diff --git a/server/mirrormanager/templates/publiclist.kid
b/server/mirrormanager/templates/publiclist.kid
index 9dab87b..8b1279d 100644
--- a/server/mirrormanager/templates/publiclist.kid
+++ b/server/mirrormanager/templates/publiclist.kid
@@ -102,7 +102,8 @@ and development networks globally.
<div id="footer">
<p class="disclaimer">
Listing generated
- by <a
href="http://mirrormanager.org/">MirrorManager</a>.
+ by <a
href="http://mirrormanager.org/">MirrorManager</a> at
+ ${utcnow} UTC.
Please direct questions or problems with this list to ${report_problems_to_email}.
</p>
</div>