Merge pull request #613 from woorst/mark_edited

Indicate edited submissions/comments.
This commit is contained in:
Michael Lazar
2018-10-23 10:36:58 -04:00
committed by GitHub
3 changed files with 24 additions and 3 deletions

View File

@@ -363,7 +363,8 @@ class SubmissionPage(Page):
attr = self.term.attr('Created')
self.term.add_space(win)
self.term.add_line(win, '{created}'.format(**data), attr=attr)
self.term.add_line(win, '{created}{edited}'.format(**data),
attr=attr)
if data['gold']:
attr = self.term.attr('Gold')
@@ -434,7 +435,8 @@ class SubmissionPage(Page):
attr = self.term.attr('Created')
self.term.add_space(win)
self.term.add_line(win, '{created_long}'.format(**data), attr=attr)
self.term.add_line(win, '{created_long}{edited_long}'.format(**data),
attr=attr)
row = len(data['split_title']) + 2
if data['url_full'] in self.config.history: