diff options
author | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-25 03:36:51 -0500 |
---|---|---|
committer | Blake DeMarcy <ofunknowndescent@gmail.com> | 2017-04-25 03:36:51 -0500 |
commit | 0f6846c3609c3b8caa34a296355e06d18261a1e1 (patch) | |
tree | 4fc46a36625b844f3c65ddd7b6062ea01b23efe0 /clients | |
parent | 90b5573f842e1be81743194705fa94c41969da61 (diff) | |
download | bbj-0f6846c3609c3b8caa34a296355e06d18261a1e1.tar.gz |
add new parameter to threads: last_author
Diffstat (limited to 'clients')
-rw-r--r-- | clients/urwid/main.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py index fa343a3..0f0c942 100644 --- a/clients/urwid/main.py +++ b/clients/urwid/main.py @@ -594,17 +594,23 @@ class App(object): ] infoline = "%d replies; active %s" % ( - thread["reply_count"], self.timestring(thread["last_mod"], "delta")) + thread["reply_count"], + self.timestring(thread["last_mod"], "delta")) + last_author = self.usermap[thread["last_author"]] pile = [ urwid.Columns([(3, urwid.AttrMap(button, "button", "hover")), title]), urwid.Text(dateline), - urwid.AttrMap(urwid.Text(infoline), "dim"), + urwid.Text(("dim", infoline)), + urwid.Text([ + ("dim", "last post by "), + (str(last_author["color"]), "~" + last_author["user_name"]) + ]), urwid.AttrMap(urwid.Divider("-"), "dim") ] if self.prefs["index_spacing"]: - pile.insert(3, urwid.Divider()) + pile.insert(4, urwid.Divider()) pile = urwid.Pile(pile) pile.thread = thread |