summaryrefslogtreecommitdiffstats
path: root/forum/skins/default/templates/tag_selector.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-10 19:52:18 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-10 19:52:18 -0500
commitd97cdc198952f3286c027459b4e37cc0a94361f3 (patch)
tree5c659b9acf6d3177d095374224e3c44853907e78 /forum/skins/default/templates/tag_selector.html
parentee38739d3b681f7d9fb61b650368d08e290a46bb (diff)
downloadaskbot-d97cdc198952f3286c027459b4e37cc0a94361f3.tar.gz
askbot-d97cdc198952f3286c027459b4e37cc0a94361f3.tar.bz2
askbot-d97cdc198952f3286c027459b4e37cc0a94361f3.zip
second take on skins - quite a bit simpler
Diffstat (limited to 'forum/skins/default/templates/tag_selector.html')
-rw-r--r--forum/skins/default/templates/tag_selector.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/forum/skins/default/templates/tag_selector.html b/forum/skins/default/templates/tag_selector.html
new file mode 100644
index 00000000..7686d717
--- /dev/null
+++ b/forum/skins/default/templates/tag_selector.html
@@ -0,0 +1,42 @@
+{% load i18n %}
+{% load extra_tags %}
+<div id="tagSelector" class="boxC">
+ <h3 class="subtitle">{% trans "Interesting tags" %}</h3>
+ <div class="tags interesting marked-tags">
+ {% for tag_name in interesting_tag_names %}
+ {% spaceless %}
+ <span class="deletable-tag" id="interesting-tag-{{tag_name}}">
+ <a rel="tag"
+ title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
+ href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
+ <img class="delete-icon"
+ src="{% media "/media/images/close-small-dark.png" %}"
+ title="{% blocktrans %}remove '{{tag_name}}' from the list of interesting tags{% endblocktrans %}"/>
+ </span>
+ {% endspaceless %}
+ {% endfor %}
+ </div>
+ <input id="interestingTagInput" autocomplete="off" type="text"/>
+ <input id="interestingTagAdd" type="submit" value="{% trans "Add" %}"/>
+ <h3 class="subtitle">{% trans "Ignored tags" %}</h3>
+ <div class="tags ignored marked-tags">
+ {% for tag_name in ignored_tag_names %}
+ {% spaceless %}
+ <span class="deletable-tag" id="ignored-tag-{{tag_name}}">
+ <a rel="tag"
+ title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
+ href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
+ <img class="delete-icon"
+ src="{% media "/media/images/close-small-dark.png" %}"
+ title="{% blocktrans %}remove '{{tag_name}}' from the list of ignored tags{% endblocktrans %}"/>
+ </span>
+ {% endspaceless %}
+ {% endfor %}
+ </div>
+ <input id="ignoredTagInput" autocomplete="off" type="text"/>
+ <input id="ignoredTagAdd" type="submit" value="{% trans "Add" %}"/>
+ <p id="hideIgnoredTagsControl">
+ <input id="hideIgnoredTagsCb" type="checkbox" {% if request.user.hide_ignored_questions %}checked="checked"{% endif %} />
+ <label id="hideIgnoredTagsLabel" for="hideIgnoredTagsCb">{% trans "keep ingored questions hidden" %}</label>
+ <p>
+</div>