Changed /r/me to "My Submissions" in page header, added test.

This commit is contained in:
Michael Lazar
2016-07-07 17:44:35 -07:00
parent dacbe11e4b
commit 42d342f175
3 changed files with 2823 additions and 2 deletions

View File

@@ -280,7 +280,9 @@ class Page(object):
ch, attr = str(' '), curses.A_REVERSE | curses.A_BOLD | Color.CYAN
window.bkgd(ch, attr)
sub_name = self.content.name.replace('/r/front', 'Front Page')
sub_name = self.content.name
sub_name = sub_name.replace('/r/front', 'Front Page')
sub_name = sub_name.replace('/r/me', 'My Submissions')
self.term.add_line(window, sub_name, 0, 0)
# Set the terminal title