By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 user-profile.html

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