Merge pull request #416 from cmccandless/master

RE #415: Add '[S]' to submitter username on comments
This commit is contained in:
Michael Lazar
2017-08-18 18:34:19 -04:00
committed by GitHub

View File

@@ -262,7 +262,10 @@ class SubmissionPage(Page):
attr = curses.A_BOLD
attr |= (Color.BLUE if not data['is_author'] else Color.GREEN)
self.term.add_line(win, '{author} '.format(**data), row, 1, attr)
text = '{author} '.format(**data)
if data['is_author']:
text += '[S] '
self.term.add_line(win, text, row, 1, attr)
if data['flair']:
attr = curses.A_BOLD | Color.YELLOW