From 672bb5d0087dd44c9e05d1d3b66f64f2e3cc6805 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Tue, 27 Aug 2019 15:08:40 +0200 Subject: [PATCH] Add reply, reblog and favourite counters --- toot/tui/timeline.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 12fb04f..c01d2b9 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -171,6 +171,13 @@ class StatusDetails(urwid.Pile): yield ("pack", urwid.Divider()) yield ("pack", self.build_linebox(self.card_generator(card))) + yield ("pack", urwid.AttrWrap(urwid.Divider("-"), "gray")) + yield ("pack", urwid.Text([ + ("gray", "⤶ {} ".format(status.data["replies_count"])), + ("yellow" if status.reblogged else "gray", "♺ {} ".format(status.data["reblogs_count"])), + ("yellow" if status.favourited else "gray", "★ {}".format(status.data["favourites_count"])), + ])) + # Push things to bottom yield ("weight", 1, urwid.SolidFill(" ")) yield ("pack", urwid.Text([