From 5ed7d9b53a65aec1f4793f62ac15195c44224b39 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Tue, 18 Jul 2023 00:00:20 +0200 Subject: Implement Question object type support This commit adds support for dealing with ActivityPub Questions, which are polls. They are like Notes (posts) but contain a few more keys that record information about the poll options, number of votes and poll closure date. --- src/templates/appoll.html | 9 +++++++++ src/templates/appoll_item.html | 1 + 2 files changed, 10 insertions(+) create mode 100644 src/templates/appoll.html create mode 100644 src/templates/appoll_item.html (limited to 'src/templates') diff --git a/src/templates/appoll.html b/src/templates/appoll.html new file mode 100644 index 0000000..7d5bb87 --- /dev/null +++ b/src/templates/appoll.html @@ -0,0 +1,9 @@ +

Poll

+ + +

Poll options

+ diff --git a/src/templates/appoll_item.html b/src/templates/appoll_item.html new file mode 100644 index 0000000..2ce6967 --- /dev/null +++ b/src/templates/appoll_item.html @@ -0,0 +1 @@ +
  • {{name}} {{votes}} votes ({{votes-percent}}%)
  • -- cgit v1.2.3-54-g00ecf