]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/question_list/tag_selector.html
f507d646efde2994dbe784995a9fb6397961c660
[osqa.git] / forum / skins / default / templates / question_list / tag_selector.html
1 {% load i18n %}
2 {% load extra_tags %}
3
4 {% if user_authenticated %}
5 <div id="tagSelector" class="boxC">
6         <h3 class="subtitle">{% trans "Interesting tags" %}</h3>
7     <div class="tags interesting marked-tags">
8     {% for tag_name in interesting_tag_names %}
9         {% spaceless %}
10         <span class="deletable-tag" id="interesting-tag-{{tag_name}}">
11             <a rel="tag" 
12                 class="tag-link-{{ tag_name }}"
13                 title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
14                 href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
15             <img class="delete-icon" 
16                 src="{% media  "/media/images/close-small-dark.png" %}"
17                 title="{% blocktrans %}remove '{{tag_name}}' from the list of interesting tags{% endblocktrans %}"/>
18         </span>
19         {% endspaceless %}
20     {% endfor %}
21     </div>
22     <input id="interestingTagInput" autocomplete="off" type="text"/>
23     <input id="interestingTagAdd" type="submit" value="{% trans "Add" %}"/>
24         <h3 class="subtitle">{% trans "Ignored tags" %}</h3>
25     <div class="tags ignored marked-tags">
26     {% for tag_name in ignored_tag_names %}
27         {% spaceless %}
28         <span class="deletable-tag" id="ignored-tag-{{tag_name}}">
29             <a rel="tag" 
30                 class="tag-link-{{ tag_name }}"
31                 title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
32                 href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
33             <img class="delete-icon" 
34                 src="{% media  "/media/images/close-small-dark.png" %}"
35                 title="{% blocktrans %}remove '{{tag_name}}' from the list of ignored tags{% endblocktrans %}"/>
36         </span>
37         {% endspaceless %}
38     {% endfor %}
39     </div>
40     <input id="ignoredTagInput" autocomplete="off" type="text"/>
41     <input id="ignoredTagAdd" type="submit" value="{% trans "Add" %}"/>
42     {% comment %}
43     <p id="hideIgnoredTagsControl">
44     <input id="hideIgnoredTagsCb" type="checkbox" {% if request.user.hide_ignored_questions %}checked="checked"{% endif %} />
45     <label id="hideIgnoredTagsLabel" for="hideIgnoredTagsCb">{% trans "keep ignored questions hidden" %}</label>
46     <p>
47     {% endcomment %}
48 </div>
49 {% endif %}