Appearance: Homogenize the no-result template look

Make sure the no-result template looks the same when included from
all the parent templates.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-11-30 04:33:45 -04:00
parent 8bf484051e
commit d210f05aa6
3 changed files with 198 additions and 198 deletions

View File

@@ -14,7 +14,7 @@
{% for object_navigation_links in resolved_links %}
{% include 'navigation/generic_navigation.html' %}
{% empty %}
<p class="text-center" colspan=99>
<p class="text-center">
{% include 'appearance/no_results.html' %}
</p>
{% endfor %}

View File

@@ -6,6 +6,12 @@
<div class="row">
<div class="col-xs-12">
{% if not object_list %}
<div class="well">
{% include 'appearance/no_results.html' %}
</div>
{% else %}
<h4>
{% if page_obj %}
{% if page_obj.paginator.num_pages != 1 %}
@@ -100,16 +106,12 @@
</div>
</div>
</div>
{% empty %}
<div class="col-xs-12">
{% include 'appearance/no_results.html' %}
</div>
{% endfor %}
</div>
{% include 'pagination/pagination.html' %}
</div>
{% endif %}
</div>
</div>

View File

@@ -6,6 +6,11 @@
<div class="row">
<div class="col-xs-12">
{% if not object_list %}
<div class="well center-block">
{% include 'appearance/no_results.html' %}
</div>
{% else %}
<h4>
{% if page_obj %}
{% if page_obj.paginator.num_pages != 1 %}
@@ -67,7 +72,6 @@
{% endif %}
{% for object in object_list %}
<tr>
{% if multi_item_actions %}
<td>
{% if multi_select_item_properties %}
@@ -115,17 +119,11 @@
</td>
{% endif %}
</tr>
{% empty %}
<tr>
<td class="text-center" colspan=99>
{% include 'appearance/no_results.html' %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include 'pagination/pagination.html' %}
</div>
{% endif %}
</div>
</div>