Merge branch 'master' of https://github.com/shanhind/rtv into shanhind-master

This commit is contained in:
Michael Lazar
2015-03-12 15:15:14 -07:00
3 changed files with 10 additions and 0 deletions

View File

@@ -113,6 +113,8 @@ class SubmissionPage(BasePage):
attr = curses.A_BOLD
attr |= (Color.BLUE if not data['is_author'] else Color.GREEN)
win.addnstr(row, 1, text, n_cols-1, attr)
text = ' {flair}'.format(**data)
win.addnstr(text, n_cols-win.getyx()[1], curses.A_BOLD | Color.YELLOW)
text = ' {score} {created}'.format(**data)
win.addnstr(text, n_cols - win.getyx()[1])
@@ -173,6 +175,8 @@ class SubmissionPage(BasePage):
attr = curses.A_BOLD | Color.GREEN
text = '{author}'.format(**data)
win.addnstr(row, 1, text, n_cols, attr)
text = ' {flair}'.format(**data)
win.addnstr(text, n_cols-win.getyx()[1], curses.A_BOLD | Color.YELLOW)
text = ' {created} {subreddit}'.format(**data)
win.addnstr(text, n_cols - win.getyx()[1])