diff options
author | Byron <byroncorrales@gmail.com> | 2011-10-22 11:41:52 -0600 |
---|---|---|
committer | Byron <byroncorrales@gmail.com> | 2011-10-22 11:41:52 -0600 |
commit | f708e6ef4f224f382123366cb59ff459e11849cb (patch) | |
tree | 1339b710900a93702f3afd2837c239e9c84b91ea | |
parent | 4a603309cda6461a1b2f9aeae9a9c10e45681056 (diff) | |
download | askbot-f708e6ef4f224f382123366cb59ff459e11849cb.tar.gz askbot-f708e6ef4f224f382123366cb59ff459e11849cb.tar.bz2 askbot-f708e6ef4f224f382123366cb59ff459e11849cb.zip |
Hidden scope nav and ask button on Ask question template
-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 %} |