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 • 2.87 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
9
{% block content %}
10
<x-frame style="--width: 768px;">
11
<x-vbox>
12
<x-hbox style="align-items: center;">
13
<img src="/info/{{ user.username }}/avatar" class="avatar">
14
15
<x-vbox class="nopad" style="flex: 1 0 auto;">
16
{% if user.displayName and user.displayName != user.username %}
17
<hgroup id="username">
18
<h1 class="headline">{{ user.displayName }}</h1>
19
<p>{{ user.username }}</p>
20
</hgroup>
21
{% else %}
22
<h1 class="headline">{{ user.username }}</h1>
23
{% endif %}
24
</x-vbox>
25
<div class="flexible-space"></div>
26
<ul class="noindent" style="list-style: none; text-align: end;">
27
{% if user.URL %}
28
<li><a href="{{ user.URL }}"><x-hbox><iconify-icon icon="ic:outline-web"></iconify-icon>{{ user.URL }}</x-hbox></a></li>
29
{% endif %}
30
{% if user.companyURL %}
31
<li><a href="{{ user.companyURL }}"><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></a></li>
32
{% elif user.company %}
33
<li><x-hbox><iconify-icon icon="ic:baseline-business-center"></iconify-icon>{{ user.company }}</x-hbox></li>
34
{% endif %}
35
{% if user.location %}
36
<li><x-hbox><iconify-icon icon="mdi:map-marker-radius"></iconify-icon>{{ user.location }}</x-hbox></li>
37
{% endif %}
38
</ul>
39
</x-hbox>
40
{% if user.bio %}
41
<article class="card" style="flex: 0 1 auto;">
42
<section class="card-main">
43
<p>
44
{{ user.bio }}
45
</p>
46
</section>
47
</article>
48
{% endif %}
49
<article class="card" style="flex: 0 1 auto;">
50
<section class="card-main">
51
<ul style="list-style: none;" class="noindent">
52
{% for repo in repos %}
53
<li>
54
<article>
55
<a href="{{ repo.route }}"><h3>{{ repo.name }}</h3></a>
56
<p>{{ repo.info }}</p>
57
</article>
58
</li>
59
{% endfor %}
60
</ul>
61
</section>
62
</article>
63
</x-vbox>
64
</x-frame>
65
{% endblock %}
66
67