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