Browse Source

Update "no topics found" message

Previously, the message would always tell users to try choosing a longer
time period, even if they were already on "all time".
merge-requests/53/head
Deimos 6 years ago
parent
commit
1a7f385ccc
  1. 8
      tildes/tildes/templates/topic_listing.jinja2

8
tildes/tildes/templates/topic_listing.jinja2

@ -115,14 +115,18 @@
{% if not topics %} {% if not topics %}
<div class="empty"> <div class="empty">
{% if period %}
<h2 class="empty-title">No topics in the selected time period</h2> <h2 class="empty-title">No topics in the selected time period</h2>
{% if is_single_group and request.has_permission('post_topic', group) %} {% if is_single_group and request.has_permission('post_topic', group) %}
<p class="empty-subtitle">Choose a longer time period, or break the silence by posting one yourself.</p>
<p class="empty-subtitle">Try choosing a longer time period, or break the silence by posting one yourself.</p>
<div class="empty-action"> <div class="empty-action">
<a href="/~{{ group.path }}/new_topic" class="btn btn-primary">Post a new topic</a> <a href="/~{{ group.path }}/new_topic" class="btn btn-primary">Post a new topic</a>
</div> </div>
{% else %} {% else %}
<p class="empty-subtitle">Choose a longer time period to find some.</p>
<p class="empty-subtitle">Try choosing a longer time period to find some.</p>
{% endif %}
{% else %}
<h2 class="empty-title">No topics found</h2>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}

Loading…
Cancel
Save