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 nav %} 9<ul id="repo-tabs"> 10<li class="{% if active_page == 'profile' %}selected{% endif %}"> 11<a href="?"> 12{% trans %}Profile{% endtrans %} 13</a> 14</li> 15<li class="{% if active_page == 'repositories' %}selected{% endif %}"> 16<a href="?action=repositories"> 17{% trans %}Repositories{% endtrans %} 18</a> 19</li> 20<li class="{% if active_page == 'followers' %}selected{% endif %}"> 21<a href="?action=followers"> 22{% trans %}Followers{% endtrans %} 23</a> 24</li> 25<li class="{% if active_page == 'following' %}selected{% endif %}"> 26<a href="?action=follows"> 27{% trans %}Following{% endtrans %} 28</a> 29</li> 30</ul> 31 32<div class="flexible-space"></div> 33 34{% if logged_in_user and logged_in_user != user.username %} 35<form action="?action=follow" method="POST"> 36<button type="submit"> 37{% trans %}Follow{% endtrans %} 38</button> 39</form> 40{% endif %} 41{% endblock %} 42 43{% block full %} 44<x-frame style="--width: 768px; --padding: 1em;"> 45<x-vbox> 46<x-hbox style="align-items: center;" id="profile-header"> 47<img src="/info/{{ user.username }}/avatar" class="avatar" id="profile-avatar"> 48 49<x-vbox class="nopad"> 50{% if user.display_name and user.display_name != user.username %} 51<hgroup id="username"> 52<h1>{{ user.display_name }}</h1> 53<p>{{ user.username }}</p> 54</hgroup> 55{% else %} 56<h1 class="headline">{{ user.username }}</h1> 57{% endif %} 58</x-vbox> 59<div class="flexible-space"></div> 60<ul class="noindent" style="list-style: none; text-align: end;"> 61{% if user.URL %} 62<li><a href="{{ user.URL }}"><x-hbox><iconify-icon icon="ic:outline-web"></iconify-icon>{{ user.URL }}</x-hbox></a></li> 63{% endif %} 64{% if user.company_url %} 65<li><a href="{{ user.company_url }}"><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></a></li> 66{% elif user.company %} 67<li><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></li> 68{% endif %} 69{% if user.location %} 70<li><x-hbox><iconify-icon icon="mdi:map-marker-radius"></iconify-icon>{{ user.location }}</x-hbox></li> 71{% endif %} 72{% if user.show_mail %} 73<li><a href="mailto:{{ user.email }}"><x-hbox><iconify-icon icon="mdi:email"></iconify-icon>{{ user.email }}</x-hbox></a></li> 74{% endif %} 75</ul> 76</x-hbox> 77{% block content %}{% endblock %} 78</x-vbox> 79</x-frame> 80{% endblock %} 81 82{% block scripts %} 83<script src="/static/marquee.js"></script> 84{% endblock %} 85