aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/account.html
blob: 7b1d426416e0e941c87cf31c3e244c1fb5972c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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="pink">at://{{ 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 %}