From 7744fc72833ce0f262d60c333f7148cbf473344b Mon Sep 17 00:00:00 2001 From: Jack Lawson Date: Thu, 24 Apr 2014 11:56:52 -0700 Subject: [PATCH] Move timestamp `live-timestamp` class for less whitespace --- r2/r2/templates/utils.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/r2/r2/templates/utils.html b/r2/r2/templates/utils.html index 46a3866ce..c40d5b4cf 100755 --- a/r2/r2/templates/utils.html +++ b/r2/r2/templates/utils.html @@ -549,13 +549,12 @@ ${unsafe(txt)} <%def name="timestamp(date, since=None, live=False, include_tense=False)"> ## todo: use pubdate attribute once things are
tags. ## note: comment and link templates will pass a CachedVariable stub as since. - <% now = date.now(g.tz) %> + <% + now = date.now(g.tz) + timestamp_class = unsafe(' class="live-timestamp"') if live else '' + %> -