-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.html
60 lines (57 loc) · 1.61 KB
/
user.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{% extends "layout.html" %}
{% block title %}User {{ uid }} - {{ super() }}{% endblock %}
{% block content %}
{% if user %}
<div class="page-header">
<h1>User: {{ user.cn }}</h1>
</div>
<div class="panel-group" role="tablist">
<div class="panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-user"></span>
{{ user.cn }}
</div>
<div class="panel-body">
<dl class="dl-horizontal">
<dt>Wikitech</dt>
<dd><a href="https://wikitech.wikimedia.org/wiki/User:{{ user.cn }}" rel="nofollow">User:{{ user.cn }}</a></dd>
<dt>shell</dt>
<dd>{{ user.uid }}</dd>
</dl>
</div>
</div>
{% if domain_roles %}
<div class="panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-lock"></span>
System-wide roles
</div>
<div class="panel-body">
<ul class="list-unstyled column-list">
{% for role in domain_roles %}
<li>{{ role }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if projects %}
<div class="panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-cloud"></span>
Projects
</div>
<div class="panel-body">
<ul class="list-unstyled column-list">
{% for project_id, project_name in projects %}
<li><a href="{{ url_for('project', project_id=project_id) }}" rel="nofollow">{{ project_name }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>
{% else %}
<p>Unknown user '{{ uid }}'. Are you just guessing?</p>
{% endif %}
{% endblock %}