blob: 6abc0492daed6a3a0cdd0131b88f70094fc1d371 (
plain)
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
|
{% import "macros.html" as macros %}
{{ settings.SIDEBAR_MAIN_HEADER }}
{% if contributors and settings.SIDEBAR_MAIN_SHOW_AVATARS %}
{% cache 600 "contributors" contributors search_tags scope sort query context.page context.page_size language_code %}
<div id="contrib-users" class="boxC">
<h2>{% trans %}Contributors{% endtrans %}</h2>
{% spaceless %}
{% for person in contributors %}
{{ macros.gravatar(person,48) }}
{% endfor %}
{% endspaceless %}
</div>
{% endcache %}
{% endif %}
{% if request.user.is_authenticated() and settings.SIDEBAR_MAIN_SHOW_TAG_SELECTOR %}
{% include "blocks/tag_selector.html" %}
{% endif %}
{% if tags and settings.SIDEBAR_MAIN_SHOW_TAGS %}
{% cache 0 "tags" tags search_tags scope sort query context.page context.page_size language_code %}
<div class="boxC">
<h2>{% trans %}Related tags{% endtrans %}</h2>
{% if tag_list_type == 'list' %}
<ul id="related-tags" class="tags">
{% for tag in tags %}
<li>
{{ macros.tag_widget(
tag.name,
html_tag = 'div',
extra_content = '<span class="tag-number">× ' ~
tag.local_used_count|intcomma ~ '</span>'
)}}
</li>
{% endfor %}
</ul>
{% else %}
{{ macros.tag_cloud(tags = tags, font_sizes = font_size) }}
{% endif %}
</div>
{% endcache %}
{% endif %}
{{ settings.SIDEBAR_MAIN_FOOTER }}
|