Add separator between timestamp and comment count

This commit is contained in:
5225225
2016-01-10 10:51:22 +00:00
parent 6bd4773576
commit 5fd3c751ca
2 changed files with 10 additions and 1 deletions

View File

@@ -190,7 +190,10 @@ class SubredditPage(Page):
self.term.add_line(win, '{score} '.format(**data), row, 1) self.term.add_line(win, '{score} '.format(**data), row, 1)
text, attr = self.term.get_arrow(data['likes']) text, attr = self.term.get_arrow(data['likes'])
self.term.add_line(win, text, attr=attr) self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {created} {comments} '.format(**data)) self.term.add_line(win, ' {created} '.format(**data))
text, attr = self.term.timestamp_sep
self.term.add_line(win, text, attr=attr)
self.term.add_line(win, ' {comments} '.format(**data))
if data['stickied']: if data['stickied']:
text, attr = self.term.stickied text, attr = self.term.stickied
self.term.add_line(win, text, attr=attr) self.term.add_line(win, text, attr=attr)

View File

@@ -61,6 +61,12 @@ class Terminal(object):
attr = curses.A_BOLD attr = curses.A_BOLD
return symbol, attr return symbol, attr
@property
def timestamp_sep(self):
symbol = 'o' if self.ascii else ''
attr = curses.A_BOLD
return symbol, attr
@property @property
def guilded(self): def guilded(self):
symbol = '*' if self.ascii else '' symbol = '*' if self.ascii else ''