Show application used to post status
This commit is contained in:
parent
7e04ad55c6
commit
05972fc6fa
1 changed files with 4 additions and 0 deletions
|
@ -232,11 +232,15 @@ class StatusDetails(urwid.Pile):
|
||||||
yield ("pack", urwid.Divider())
|
yield ("pack", urwid.Divider())
|
||||||
yield ("pack", self.build_linebox(self.card_generator(card)))
|
yield ("pack", self.build_linebox(self.card_generator(card)))
|
||||||
|
|
||||||
|
application = status.data.get("application") or {}
|
||||||
|
application = application.get("name")
|
||||||
|
|
||||||
yield ("pack", urwid.AttrWrap(urwid.Divider("-"), "gray"))
|
yield ("pack", urwid.AttrWrap(urwid.Divider("-"), "gray"))
|
||||||
yield ("pack", urwid.Text([
|
yield ("pack", urwid.Text([
|
||||||
("gray", "⤶ {} ".format(status.data["replies_count"])),
|
("gray", "⤶ {} ".format(status.data["replies_count"])),
|
||||||
("yellow" if status.reblogged else "gray", "♺ {} ".format(status.data["reblogs_count"])),
|
("yellow" if status.reblogged else "gray", "♺ {} ".format(status.data["reblogs_count"])),
|
||||||
("yellow" if status.favourited else "gray", "★ {}".format(status.data["favourites_count"])),
|
("yellow" if status.favourited else "gray", "★ {}".format(status.data["favourites_count"])),
|
||||||
|
("gray", " · {}".format(application) if application else ""),
|
||||||
]))
|
]))
|
||||||
|
|
||||||
# Push things to bottom
|
# Push things to bottom
|
||||||
|
|
Loading…
Reference in a new issue