X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/f72b9230d9bb36b1bd752df22ef9a25136b972d1..07ab188d70f8e090ad79090fb467b7f1c1d72ef9:/forum/skins/default/templates/question.html diff --git a/forum/skins/default/templates/question.html b/forum/skins/default/templates/question.html index 47e654a..466df6a 100644 --- a/forum/skins/default/templates/question.html +++ b/forum/skins/default/templates/question.html @@ -3,6 +3,7 @@ {% load node_tags %} {% load extra_tags %} {% load extra_filters %} +{% load general_sidebar_tags %} {% load smart_if %} {% load humanize %} {% load i18n %} @@ -22,7 +23,10 @@ $().ready(function(){ $("#nav_questions").attr('className',"on"); var answer_sort_tab = "{{ tab_id }}"; - $("#" + answer_sort_tab).attr('className',"on"); + + if (answer_sort_tab) { + $("#" + answer_sort_tab).attr('className',"on"); + } $('#editor').TextAreaResizer(); @@ -209,8 +213,8 @@ -
{{ answer.text.errors }} +

{% include "subscription_status.html" %} +{% sidebar_upper %} {% cache 60 questions_tags settings.APP_URL question.id %}

{% trans "Question tags" %}:

- {% for tag in tags %} + {% for tag in question.tags.all %} ×{{ tag.used_count|intcomma }}
@@ -257,6 +262,7 @@

{% endcache %} +{% sidebar_lower %}

{% trans "Related questions" %}