Anton Shestakov <av6@dwimlabs.net>, Mon, 22 Aug 2016 20:38:06 +0800
docs: add a readme with basic configuration explained
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)