diff options
Diffstat (limited to 'adenosine-pds/templates/account.html')
-rw-r--r-- | adenosine-pds/templates/account.html | 36 |
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 %} |