Anton Shestakov <av6@dwimlabs.net>, Sat, 30 Jul 2016 17:47:09 +0800
queue: print a usable URL in the 'serving on' log line
candolint/uimodules.py
Permissions: -rw-r--r--
from tornado.web import UIModule def render(self, value, format_=True): datetime = value.isoformat() + 'Z' text = value.strftime('%Y-%m-%d %H:%M:%S') + ' UTC' parts = value.split(' ', 2) datetime = '{}T{}{}'.format(*parts) return self.render_string('ui/time.html', datetime=datetime, text=text) return self.render_string('ui/badges.html', check=check)