summaryrefslogtreecommitdiffstats
path: root/askbot/templates/widgets/related_tags.html
blob: 05520998ffce32f0039caba7cf743dca6e9e9dcd (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
{% cache 0 "tags" tags search_tags scope sort query context.page language_code %}
  <div class="box">
    <h2>{% trans %}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">&#215; ' ~
              tag.local_used_count|intcomma ~ '</span>',
              search_state = search_state
        )}}
        </li>
        {% endfor %}
      </ul>
    {% else %}
        {{ 
            macros.tag_cloud(
                tags = tags,
                font_sizes = font_size,
                search_state = search_state
            )
        }}
    {% endif %}
  </div>
{% endcache %}