user-profile.html
HTML document, ASCII text
1{% extends "default.html" %} 2{% block title %} 3{{ user.username }} 4{% endblock %} 5{% block breadcrumbs %} 6<li><a href="/{{ user.username }}">{{ user.username }}</a></li> 7{% endblock %} 8{% block seo %} 9<meta name="description" content="{{ user.bio }}"> 10{% endblock %} 11{% block nav %} 12<ul id="repo-tabs"> 13<li class="{% if active_page == 'profile' %}selected{% endif %}"> 14<a href="?"> 15{% trans %}Profile{% endtrans %} 16</a> 17</li> 18<li class="{% if active_page == 'repositories' %}selected{% endif %}"> 19<a href="?action=repositories"> 20{% trans %}Repositories{% endtrans %} 21</a> 22</li> 23<li class="{% if active_page == 'followers' %}selected{% endif %}"> 24<a href="?action=followers"> 25{% trans %}Followers{% endtrans %} 26</a> 27</li> 28<li class="{% if active_page == 'following' %}selected{% endif %}"> 29<a href="?action=follows"> 30{% trans %}Following{% endtrans %} 31</a> 32</li> 33<li class="{% if active_page == 'organisation' %}selected{% endif %}"> 34<a href="?action=organisation"> 35{% trans %}Organisation{% endtrans %} 36</a> 37</li> 38</ul> 39 40<div class="flexible-space"></div> 41 42{% if logged_in_user and logged_in_user != user.username %} 43<form action="?action=follow" method="POST"> 44<button type="submit"> 45{% if relationship %} 46{% trans counter=user.followers|length %}Stop following ({{ counter }}){% endtrans %} 47{% else %} 48{% trans counter=user.followers|length %}Follow ({{ counter }}){% endtrans %} 49{% endif %} 50</button> 51</form> 52{% else %} 53{% trans counter=user.followers|length %}{{ counter }} followers{% endtrans %} 54{% endif %} 55{% endblock %} 56 57{% block full %} 58<x-frame style="--width: 768px; --padding: 1em;"> 59<x-vbox> 60<x-hbox style="align-items: center;" id="profile-header"> 61<img src="/info/{{ user.username }}/avatar" class="avatar" id="profile-avatar"> 62 63<x-vbox> 64{% if user.display_name and user.display_name != user.username %} 65<hgroup id="username"> 66<h1>{{ user.display_name }}</h1> 67<p>{{ user.username }}</p> 68</hgroup> 69{% else %} 70<h1 class="headline">{{ user.username }}</h1> 71{% endif %} 72{% if logged_in_user and logged_in_user != user.username %} 73<a href="/{{ user.username }}/?action=trust">{% trans %}Trust this user{% endtrans %}</a> 74{% endif %} 75</x-vbox> 76<div class="flexible-space"></div> 77<ul class="noindent" style="list-style: none; text-align: end;"> 78{% if user.URL %} 79<li><a href="{{ user.URL }}"><x-hbox><iconify-icon icon="ic:outline-web"></iconify-icon>{{ user.URL }}</x-hbox></a></li> 80{% endif %} 81{% if user.company_URL %} 82<li><a href="{{ user.company_URL }}"><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></a></li> 83{% elif user.company %} 84<li><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></li> 85{% endif %} 86{% if user.location %} 87<li><x-hbox><iconify-icon icon="mdi:map-marker-radius"></iconify-icon>{{ user.location }}</x-hbox></li> 88{% endif %} 89{% if user.show_mail %} 90<li><a href="mailto:{{ user.email }}"><x-hbox><iconify-icon icon="mdi:email"></iconify-icon>{{ user.email }}</x-hbox></a></li> 91{% endif %} 92</ul> 93</x-hbox> 94{% block content %}{% endblock %} 95</x-vbox> 96</x-frame> 97{% endblock %} 98 99{% block scripts %} 100<script src="/static/marquee.js"></script> 101{% endblock %} 102