summaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-12-08 22:50:45 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2009-12-08 22:50:45 -0500
commit9655bd421022dd6488b21184cc9fd0242c6b345e (patch)
tree8d9e58419b50630adc537ac92907d04946edc925 /templates/index.html
parent932b13188b08871e4f541f46c1dbb4eca693adfa (diff)
downloadaskbot-9655bd421022dd6488b21184cc9fd0242c6b345e.tar.gz
askbot-9655bd421022dd6488b21184cc9fd0242c6b345e.tar.bz2
askbot-9655bd421022dd6488b21184cc9fd0242c6b345e.zip
added interesting and ignored tag selectors (works) and per-tag subscription (not tested yet)
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/templates/index.html b/templates/index.html
index 470612b4..68a13197 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -10,13 +10,15 @@
<meta name="description" content="{{ settings.APP_DESCRIPTION }}" />{% endblock %}
{% block forejs %}
<script type="text/javascript">
- $().ready(function(){
- var tab_id = "{{ tab_id }}";
- $("#"+tab_id).attr('className',"on");
- $("#nav_questions").attr('className',"on");
- });
-
- </script>
+ var tags = {{ tags_autocomplete|safe }};
+ $().ready(function(){
+ var tab_id = "{{ tab_id }}";
+ $("#"+tab_id).attr('className',"on");
+ $("#nav_questions").attr('className',"on");
+ });
+ </script>
+ <script type='text/javascript' src='{% href "/content/js/com.cnprog.editor.js" %}'></script>
+ <script type='text/javascript' src='{% href "/content/js/com.cnprog.post.js" %}'></script>
{% endblock %}
{% block content %}
<div class="tabBar">
@@ -118,6 +120,8 @@
<div class="more"><a href="{% url faq %}">{% trans "faq" %} ยป</a></div>
</div>
</div>
+{% else %}
+{% include "tag_selector.html" %}
{% endif %}
<div class="boxC">
<h3>{% trans "Recent tags" %}</h3>