aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/account.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-10 16:32:36 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-10 16:32:36 -0800
commitcd67cbbb2827c161aa6e99c93fe57f5500cbb789 (patch)
tree74288ae72c0f7ad07cf1f77416b180ab9a4f65c0 /adenosine-pds/templates/account.html
parent5e149eef22d34e5a2b2081de3533dee3373d47f8 (diff)
downloadadenosine-cd67cbbb2827c161aa6e99c93fe57f5500cbb789.tar.gz
adenosine-cd67cbbb2827c161aa6e99c93fe57f5500cbb789.zip
pds: more web view implementation
Diffstat (limited to 'adenosine-pds/templates/account.html')
-rw-r--r--adenosine-pds/templates/account.html36
1 files changed, 36 insertions, 0 deletions
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 %}
+
+<article class="profile">
+<h4>
+ {% if profile.displayName.is_some() %}
+ <span class="display_name">{{ profile.displayName.as_ref().unwrap() }}</span>
+ {% endif %}
+ <span class="handle">@{{ profile.handle }}</span>
+</h4>
+<a href="/at/{{ profile.did }}" class="ident">{{ profile.did }}</a>
+
+{% if profile.description.is_some() %}
+ <p>{{ profile.description.as_ref().unwrap() }}
+{% endif %}
+
+<p class="counts">
+ [<a href="#">{{ profile.followersCount}} followers</a> /
+ <a href="#">{{ profile.followsCount }} follows</a>]
+</p>
+</article>
+
+{% if feed.len() == 0 %}
+ <center><i>--- no posts yet! ---</i></center>
+{% else %}
+ <center><i>--- showing {{ feed.len() }} of {{ profile.postsCount }} posts</i> ---</center>
+{% endif %}
+
+{% for item in feed %}
+ {% call macro::feed_item(item) %}
+{% endfor %}
+
+
+{% endblock %}