added gold symbol to submissions

This commit is contained in:
Tobin
2015-04-03 23:43:14 -05:00
parent dcdfd643cc
commit 69c3f1c357
3 changed files with 13 additions and 4 deletions

View File

@@ -220,9 +220,13 @@ class SubmissionPage(BasePage):
attr = curses.A_BOLD | Color.YELLOW
text = clean(u' {flair}'.format(**data))
win.addnstr(text, n_cols - win.getyx()[1], attr)
text = clean(u' {created} {subreddit}'.format(**data))
text = clean(u' {created} {subreddit} '.format(**data))
win.addnstr(text, n_cols - win.getyx()[1])
if data['gold']:
text, attr = GOLD, (curses.A_BOLD | Color.YELLOW)
win.addnstr(text, n_cols - win.getyx()[1], attr)
row = len(data['split_title']) + 2
attr = curses.A_UNDERLINE | Color.BLUE
text = clean(u'{url}'.format(**data))