Révision 4b933911
Ajouté par Serghei Mihai il y a environ 9 ans
ckanext/ozwillo_theme/templates/user/read_base.html | ||
---|---|---|
1 |
{% extends "page.html" %} |
|
2 |
|
|
3 |
{% set user = c.user_dict %} |
|
4 |
|
|
5 |
{% block subtitle %}{{ user.display_name }} - {{ _('Users') }}{% endblock %} |
|
6 |
|
|
7 |
{% block breadcrumb_content %} |
|
8 |
{{ h.build_nav('user_index', _('Users')) }} |
|
9 |
{{ h.build_nav('user_datasets', user.display_name|truncate(35), id=user.name) }} |
|
10 |
{% endblock %} |
|
11 |
|
|
12 |
{% block content_action %} |
|
13 |
{% if h.check_access('user_update', user) %} |
|
14 |
{% link_for _('Manage'), controller='user', action='edit', id=user.name, class_='btn', icon='wrench' %} |
|
15 |
{% endif %} |
|
16 |
{% endblock %} |
|
17 |
|
|
18 |
{% block content_primary_nav %} |
|
19 |
{{ h.build_nav_icon('user_datasets', _('Datasets'), id=user.name) }} |
|
20 |
{{ h.build_nav_icon('user_activity_stream', _('Activity Stream'), id=user.name) }} |
|
21 |
{% endblock %} |
|
22 |
|
|
23 |
{% block secondary_content %} |
|
24 |
<div class="module context-info"> |
|
25 |
<section class="module-content"> |
|
26 |
{% block secondary_content_inner %} |
|
27 |
{% block user_image %} |
|
28 |
<div class="image">{{ h.linked_gravatar(user.email_hash, 190) }}</div> |
|
29 |
{% endblock %} |
|
30 |
{% block user_heading %} |
|
31 |
<h1 class="heading">{% if user.fullname %}{{ user.fullname }}{% endif %}</h1> |
|
32 |
{% endblock %} |
|
33 |
{% block user_about %} |
|
34 |
{% if c.about_formatted %} |
|
35 |
{{ c.about_formatted }} |
|
36 |
{% else %} |
|
37 |
<p class="empty"> |
|
38 |
{% if c.is_myself %} |
|
39 |
{% trans %}You have not provided a biography.{% endtrans %} |
|
40 |
{% else %} |
|
41 |
{% trans %}This user has no biography.{% endtrans %} |
|
42 |
{% endif %} |
|
43 |
</p> |
|
44 |
{% endif %} |
|
45 |
{% endblock %} |
|
46 |
{% block user_nums %} |
|
47 |
<div class="nums"> |
|
48 |
<dl> |
|
49 |
<dt>{{ _('Followers') }}</dt> |
|
50 |
<dd>{{ h.SI_number_span(user.num_followers) }}</dd> |
|
51 |
</dl> |
|
52 |
<dl> |
|
53 |
<dt>{{ _('Datasets') }}</dt> |
|
54 |
<dd>{{ h.SI_number_span(user.number_created_packages) }}</dd> |
|
55 |
</dl> |
|
56 |
<dl> |
|
57 |
<dt>{{ _('Edits') }}</dt> |
|
58 |
<dd>{{ h.SI_number_span(user.number_of_edits) }}</dd> |
|
59 |
</dl> |
|
60 |
</div> |
|
61 |
{% endblock %} |
|
62 |
{% if c.is_myself == false %} |
|
63 |
{% block user_follow %} |
|
64 |
<div class="follow_button"> |
|
65 |
{{ h.follow_button('user', user.id) }}</li> |
|
66 |
</div> |
|
67 |
{% endblock %} |
|
68 |
{% endif %} |
|
69 |
{% block user_info %} |
|
70 |
<div class="info"> |
|
71 |
<dl> |
|
72 |
{% if user.name.startswith('http://') or user.name.startswith('https://') %} |
|
73 |
<dt>{{ _('Open ID') }}</dt> |
|
74 |
<dd>{{ user.name|urlize(25) }}{# Be great if this just showed the domain #}</dd> |
|
75 |
{% else %} |
|
76 |
<dt>{{ _('Username') }}</dt> |
|
77 |
<dd>{% if user.fullname }}{{ user.fullname }}{% endif %}</dd> |
|
78 |
{% endif %} |
|
79 |
</dl> |
|
80 |
{% if c.is_myself %} |
|
81 |
<dl> |
|
82 |
<dt>{{ _('Email') }} <span class="label" title="{{ _('This means only you can see this') }}">{{ _('Private') }}</span></dt> |
|
83 |
<dd>{{ user.email }}</dd> |
|
84 |
</dl> |
|
85 |
{% endif %} |
|
86 |
<dl> |
|
87 |
<dt>{{ _('Member Since') }}</dt> |
|
88 |
<dd>{{ h.render_datetime(user.created) }}</dd> |
|
89 |
</dl> |
|
90 |
<dl> |
|
91 |
<dt>{{ _('State') }}</dt> |
|
92 |
<dd>{{ _(user.state) }}</dd> |
|
93 |
</dl> |
|
94 |
{% if c.is_myself %} |
|
95 |
<dl> |
|
96 |
<dt class="key">{{ _('API Key') }} <span class="label" title="{{ _('This means only you can see this') }}">{{ _('Private') }}</span></dt> |
|
97 |
<dd class="value"><code>{{ user.apikey }}</code></dd> |
|
98 |
</dl> |
|
99 |
{% endif %} |
|
100 |
{% endblock %} |
|
101 |
</div> |
|
102 |
{% endblock %} |
|
103 |
</section> |
|
104 |
</div> |
|
105 |
{% endblock %} |
Formats disponibles : Unified diff
user name replaced by fullname (#6747)