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:
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user