summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/main_page/headline.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/skins/default/templates/main_page/headline.html')
-rw-r--r--askbot/skins/default/templates/main_page/headline.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/askbot/skins/default/templates/main_page/headline.html b/askbot/skins/default/templates/main_page/headline.html
new file mode 100644
index 00000000..ec6944d6
--- /dev/null
+++ b/askbot/skins/default/templates/main_page/headline.html
@@ -0,0 +1,50 @@
+{% if questions_count > 0 %}
+ <div style="clear:both">
+ <p class="rss">
+ (<a
+ href="{{settings.APP_URL}}/feeds/rss/"
+ title="{% trans %}subscribe to the questions feed{% endtrans %}"
+ >{% trans %}rss feed{% endtrans %}</a>)
+ </p>
+ <h1 id="question-count" class="search-result-summary">
+ {% if search_tags %}
+ {% trans cnt=questions_count, q_num=questions_count|intcomma %}{{q_num}} question, tagged{% pluralize %}{{q_num}} questions, tagged{% endtrans %}
+ {% else %}
+ {% trans cnt=questions_count, q_num=questions_count|intcomma %}{{q_num}} question{% pluralize %}{{q_num}} questions{% endtrans %}
+ {% endif %}
+ {% if author_name %}
+ {% trans %}with {{author_name}}'s contributions{% endtrans %}
+ {% endif %}
+ </h1>
+ {% spaceless %}
+ <div id="search-tags" class="tags">
+ {% if search_tags %}
+ {% for tag in search_tags %}
+ <span class="tag">{{tag}}</span>
+ <span class="delete-icon"></span>
+ {% endfor %}
+ {% endif %}
+ </div>
+ {% endspaceless %}
+ {% if author_name or search_tags or query %}
+ <p class="search-tips">{% trans %}Search tips:{% endtrans %}
+ {% if reset_method_count > 1 %}
+ {% if author_name %}
+ <a href="{% url questions %}?reset_author=true">{% trans %}reset author{% endtrans %}</a>
+ {% endif %}
+ {% if search_tags %}{% if author_name and query %}, {% elif author_name %}{% trans %} or {% endtrans %}{% endif %}
+ <a href="{% url questions %}?reset_tags=true">{% trans %}reset tags{% endtrans %}</a>
+ {% endif %}
+ {% if query %}{% trans %} or {% endtrans %}
+ <a href="{% url questions %}?start_over=true">{% trans %}start over{% endtrans %}</a>
+ {% endif %}
+ {% else %}
+ <a href="{% url questions %}?start_over=true">{% trans %}start over{% endtrans %}</a>
+ {% endif %}
+ {% trans %} - to expand, or dig in by adding more tags and revising the query.{% endtrans %}
+ </p>
+ {% else %}
+ <p class="search-tips">{% trans %}Search tip:{% endtrans %} {% trans %}add tags and a query to focus your search{% endtrans %}</p>
+ {% endif %}
+ </div>
+{% endif %}