summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/templates/account.html
blob: f45b9ef69f13b76158025c114de2a381157bdb8f (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
37
38
39
{% 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 %}

<div style="float: right;">
  <a href="/xrpc/com.atproto.sync.getRepo?did={{ profile.did }}" download="{{ profile.did }}.car" class="pink">[repo.car]</a>
</div>
<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.post) %}
{% endfor %}


{% endblock %}