Skip to content

Commit

Permalink
[cosmetic] add css no-wrap on CRUD's last modified (apache#6522)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and bipinsoniguavus committed Dec 24, 2018
1 parent eed800f commit 980e141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/models/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ def changed_by_(self):

@renders('changed_on')
def changed_on_(self):
return Markup(
'<span class="no-wrap">{}</span>'.format(self.changed_on))
return Markup(f'<span class="no-wrap">{self.changed_on}</span>')

@renders('changed_on')
def modified(self):
return humanize.naturaltime(datetime.now() - self.changed_on)
time_str = humanize.naturaltime(datetime.now() - self.changed_on)
return Markup(f'<span class="no-wrap">{time_str}</span>')


class QueryResult(object):
Expand Down

0 comments on commit 980e141

Please sign in to comment.