def _renderLastUpdateDate(self, template): """Render a template's "last updated" column.""" formatter = DateTimeFormatterAPI(template.date_last_updated) full_time = formatter.datetime() date = formatter.approximatedate() return ''.join([ '<span class="sortkey">%s</span>' % full_time, '<span class="lastupdate_column" title="%s">%s</span>' % (full_time, date), ])
def _renderLastUpdateDate(self, template): """Render a template's "last updated" column.""" formatter = DateTimeFormatterAPI(template.date_last_updated) full_time = formatter.datetime() date = formatter.approximatedate() return ''.join([ '<span class="sortkey">%s</span>' % full_time, '<span class="lastupdate_column" title="%s">%s</span>' % ( full_time, date), ])
def _renderTime(self, time): """Represent `time` as HTML.""" formatter = DateTimeFormatterAPI(time) return """<span title="%s">%s</span>""" % (formatter.datetime(), formatter.approximatedate())