mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-19 22:41:00 +00:00
Result templates updated with "search other" tags
This commit is contained in:
parent
7b088df886
commit
d478f96ef6
4 changed files with 21 additions and 14 deletions
|
|
@ -9,14 +9,7 @@
|
|||
{% endblocktrans %}
|
||||
</h2>
|
||||
|
||||
<nav class="listing-filter">
|
||||
<h3 class="filter-title">{% trans "Other searches" %}</h3>
|
||||
<ul class="filter-options">
|
||||
<li><a href="{% url 'wagtailimages:index' %}?q={{ query_string|urlencode }}" class="icon icon-image">{% trans "Images" %}</a></li>
|
||||
<li><a href="{% url 'wagtaildocs:index' %}?q={{ query_string|urlencode }}" class="icon icon-doc-full-inverse">{% trans "Documents" %}</a></li>
|
||||
<li><a href="{% url 'wagtailusers_users:index' %}?q={{ query_string|urlencode }}" class="icon icon-user">{% trans "Users" %}</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% search_other %}
|
||||
|
||||
{% include "wagtailadmin/pages/listing/_list_explore.html" with show_parent=1 allow_navigation=0 %}
|
||||
|
||||
|
|
@ -24,7 +17,9 @@
|
|||
{% paginate pages base_url=pagination_base_url %}
|
||||
{% else %}
|
||||
{% if query_string %}
|
||||
<p>{% blocktrans %}Sorry, no pages match <em>"{{ query_string }}"</em>{% endblocktrans %}</p>
|
||||
<h2>{% blocktrans %}Sorry, no pages match <em>"{{ query_string }}"</em>{% endblocktrans %}</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% else %}
|
||||
<p>{% trans 'Enter a search term above' %}</p>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% load i18n %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% if documents %}
|
||||
{% if is_searching %}
|
||||
<h2>
|
||||
|
|
@ -8,6 +8,8 @@
|
|||
There are {{ counter }} matches
|
||||
{% endblocktrans %}
|
||||
</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% endif %}
|
||||
|
||||
{% include "wagtaildocs/documents/list.html" %}
|
||||
|
|
@ -15,7 +17,9 @@
|
|||
{% include "wagtailadmin/shared/pagination_nav.html" with items=documents is_searching=is_searching linkurl="wagtaildocs:index" %}
|
||||
{% else %}
|
||||
{% if is_searching %}
|
||||
<p>{% blocktrans %}Sorry, no documents match "<em>{{ query_string }}</em>"{% endblocktrans %}</p>
|
||||
<h2>{% blocktrans %}Sorry, no documents match "<em>{{ query_string }}</em>"{% endblocktrans %}</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% else %}
|
||||
{% url 'wagtaildocs:add' as wagtaildocs_add_document_url %}
|
||||
<p>{% blocktrans %}You haven't uploaded any documents. Why not <a href="{{ wagtaildocs_add_document_url }}">upload one now</a>?{% endblocktrans %}</p>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
There are {{ counter }} matches
|
||||
{% endblocktrans %}
|
||||
</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% else %}
|
||||
<h2>{% trans "Latest images" %}</h2>
|
||||
{% endif %}
|
||||
|
|
@ -28,7 +30,9 @@
|
|||
|
||||
{% else %}
|
||||
{% if is_searching %}
|
||||
<p>{% blocktrans %}Sorry, no images match "<em>{{ query_string }}</em>"{% endblocktrans %}</p>
|
||||
<h2>{% blocktrans %}Sorry, no images match "<em>{{ query_string }}</em>"{% endblocktrans %}</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% else %}
|
||||
{% url 'wagtailimages:add_multiple' as wagtailimages_add_image_url %}
|
||||
<p>{% blocktrans %}You've not uploaded any images. Why not <a href="{{ wagtailimages_add_image_url }}">add one now</a>?{% endblocktrans %}</p>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% load i18n %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% if users %}
|
||||
{% if is_searching %}
|
||||
<h2>
|
||||
|
|
@ -8,6 +8,8 @@
|
|||
There are {{ counter }} matches
|
||||
{% endblocktrans %}
|
||||
</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% endif %}
|
||||
|
||||
{% include "wagtailusers/users/list.html" %}
|
||||
|
|
@ -15,7 +17,9 @@
|
|||
{% include "wagtailadmin/shared/pagination_nav.html" with items=users is_searching=is_searching linkurl="wagtailusers_users:index" %}
|
||||
{% else %}
|
||||
{% if is_searching %}
|
||||
<p>{% blocktrans %}Sorry, no users match "<em>{{ query_string }}</em>"{% endblocktrans %}</p>
|
||||
<h2>{% blocktrans %}Sorry, no users match "<em>{{ query_string }}</em>"{% endblocktrans %}</h2>
|
||||
|
||||
{% search_other %}
|
||||
{% else %}
|
||||
{% url 'wagtailusers_create' as wagtailusers_create_url %}
|
||||
<p>{% blocktrans %}There are no users configured. Why not <a href="{{ wagtailusers_create_url }}">add some</a>?{% endblocktrans %}</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue