diff options
-rw-r--r-- | askbot/skins/default/media/style/style.css | 4 | ||||
-rw-r--r-- | askbot/skins/default/templates/widgets/ask_button.html | 4 | ||||
-rw-r--r-- | askbot/skins/default/templates/widgets/scope_nav.html | 18 |
3 files changed, 18 insertions, 8 deletions
diff --git a/askbot/skins/default/media/style/style.css b/askbot/skins/default/media/style/style.css index 9847a290..23972142 100644 --- a/askbot/skins/default/media/style/style.css +++ b/askbot/skins/default/media/style/style.css @@ -336,6 +336,10 @@ h1 { .on{ background:url(../images/scopearrow.png) no-repeat center bottom; } + + .ask-message{ + font-size:24px; + } } } diff --git a/askbot/skins/default/templates/widgets/ask_button.html b/askbot/skins/default/templates/widgets/ask_button.html index 61f4b3cd..8240f0f4 100644 --- a/askbot/skins/default/templates/widgets/ask_button.html +++ b/askbot/skins/default/templates/widgets/ask_button.html @@ -1 +1,3 @@ -<a id="askButton" href="{% url ask %}">{% trans %}ask a question{% endtrans %}</a> +{% if active_tab != "ask" %} + <a id="askButton" href="{% url ask %}">{% trans %}ask a question{% endtrans %}</a> +{% endif %} diff --git a/askbot/skins/default/templates/widgets/scope_nav.html b/askbot/skins/default/templates/widgets/scope_nav.html index ef3aadb3..222195d5 100644 --- a/askbot/skins/default/templates/widgets/scope_nav.html +++ b/askbot/skins/default/templates/widgets/scope_nav.html @@ -1,8 +1,12 @@ -<a class="scope-selector {% if scope == 'all' %}on{% endif %}" -href="{% url questions %}?scope=all" title="{% trans %}see all questions{% endtrans %}">ALL</a> -<a class="scope-selector {% if scope == 'unanswered' %}on{% endif %}" -href="{% url questions %}?scope=unanswered&sort=answers-asc" title="{% trans %}see unanswered questions{% endtrans %}">UNANSWERED</a> -{% if request.user.is_authenticated() %} - <a class="scope-selector {% if scope == 'favorite' %}on{% endif %}" - href="{% url questions %}?scope=favorite" title="{% trans %}see your followed questions{% endtrans %}">FOLLOWED</a> +{% if active_tab != "ask" %} + <a class="scope-selector {% if scope == 'all' %}on{% endif %}" + href="{% url questions %}?scope=all" title="{% trans %}see all questions{% endtrans %}">ALL</a> + <a class="scope-selector {% if scope == 'unanswered' %}on{% endif %}" + href="{% url questions %}?scope=unanswered&sort=answers-asc" title="{% trans %}see unanswered questions{% endtrans %}">UNANSWERED</a> + {% if request.user.is_authenticated() %} + <a class="scope-selector {% if scope == 'favorite' %}on{% endif %}" + href="{% url questions %}?scope=favorite" title="{% trans %}see your followed questions{% endtrans %}">FOLLOWED</a> + {% endif %} +{% else %} + <div class="scope-selector ask-message">Please ask your question here</div> {% endif %} |