From cd67cbbb2827c161aa6e99c93fe57f5500cbb789 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 Nov 2022 16:32:36 -0800 Subject: pds: more web view implementation --- adenosine-pds/templates/account.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 adenosine-pds/templates/account.html (limited to 'adenosine-pds/templates/account.html') diff --git a/adenosine-pds/templates/account.html b/adenosine-pds/templates/account.html new file mode 100644 index 0000000..bd015d5 --- /dev/null +++ b/adenosine-pds/templates/account.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% import "macro.html" as macro %} + +{% block main %} + +
+

+ {% if profile.displayName.is_some() %} + {{ profile.displayName.as_ref().unwrap() }} + {% endif %} + @{{ profile.handle }} +

+{{ profile.did }} + +{% if profile.description.is_some() %} +

{{ profile.description.as_ref().unwrap() }} +{% endif %} + +

+ [{{ profile.followersCount}} followers / + {{ profile.followsCount }} follows] +

+
+ +{% if feed.len() == 0 %} +
--- no posts yet! ---
+{% else %} +
--- showing {{ feed.len() }} of {{ profile.postsCount }} posts ---
+{% endif %} + +{% for item in feed %} + {% call macro::feed_item(item) %} +{% endfor %} + + +{% endblock %} -- cgit v1.2.3