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</ul> 34 35<div class="flexible-space"></div> 36 37{% if logged_in_user and logged_in_user != user.username %} 38<form action="?action=follow" method="POST"> 39<button type="submit"> 40{% if relationship %} 41{% trans %}Stop following{% endtrans %} 42{% else %} 43{% trans %}Follow{% endtrans %} 44{% endif %} 45</button> 46</form> 47{% endif %} 48{% endblock %} 49 50{% block full %} 51<x-frame style="--width: 768px; --padding: 1em;"> 52<x-vbox> 53<x-hbox style="align-items: center;" id="profile-header"> 54<img src="/info/{{ user.username }}/avatar" class="avatar" id="profile-avatar"> 55 56<x-vbox class="nopad"> 57{% if user.display_name and user.display_name != user.username %} 58<hgroup id="username"> 59<h1>{{ user.display_name }}</h1> 60<p>{{ user.username }}</p> 61</hgroup> 62{% else %} 63<h1 class="headline">{{ user.username }}</h1> 64{% endif %} 65</x-vbox> 66<div class="flexible-space"></div> 67<ul class="noindent" style="list-style: none; text-align: end;"> 68{% if user.URL %} 69<li><a href="{{ user.URL }}"><x-hbox><iconify-icon icon="ic:outline-web"></iconify-icon>{{ user.URL }}</x-hbox></a></li> 70{% endif %} 71{% if user.company_url %} 72<li><a href="{{ user.company_url }}"><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></a></li> 73{% elif user.company %} 74<li><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></li> 75{% endif %} 76{% if user.location %} 77<li><x-hbox><iconify-icon icon="mdi:map-marker-radius"></iconify-icon>{{ user.location }}</x-hbox></li> 78{% endif %} 79{% if user.show_mail %} 80<li><a href="mailto:{{ user.email }}"><x-hbox><iconify-icon icon="mdi:email"></iconify-icon>{{ user.email }}</x-hbox></a></li> 81{% endif %} 82</ul> 83</x-hbox> 84{% block content %}{% endblock %} 85</x-vbox> 86</x-frame> 87{% endblock %} 88 89{% block scripts %} 90<script src="/static/marquee.js"></script> 91{% endblock %} 92