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 %}
|
{% for object_navigation_links in resolved_links %}
|
||||||
{% include 'navigation/generic_navigation.html' %}
|
{% include 'navigation/generic_navigation.html' %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<p class="text-center" colspan=99>
|
<p class="text-center">
|
||||||
{% include 'appearance/no_results.html' %}
|
{% include 'appearance/no_results.html' %}
|
||||||
</p>
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
|
{% if not object_list %}
|
||||||
|
<div class="well">
|
||||||
|
{% include 'appearance/no_results.html' %}
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
|
||||||
<h4>
|
<h4>
|
||||||
{% if page_obj %}
|
{% if page_obj %}
|
||||||
{% if page_obj.paginator.num_pages != 1 %}
|
{% if page_obj.paginator.num_pages != 1 %}
|
||||||
@@ -100,16 +106,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
|
||||||
<div class="col-xs-12">
|
|
||||||
{% include 'appearance/no_results.html' %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include 'pagination/pagination.html' %}
|
{% include 'pagination/pagination.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
|
{% if not object_list %}
|
||||||
|
<div class="well center-block">
|
||||||
|
{% include 'appearance/no_results.html' %}
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
<h4>
|
<h4>
|
||||||
{% if page_obj %}
|
{% if page_obj %}
|
||||||
{% if page_obj.paginator.num_pages != 1 %}
|
{% if page_obj.paginator.num_pages != 1 %}
|
||||||
@@ -67,7 +72,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for object in object_list %}
|
{% for object in object_list %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
{% if multi_item_actions %}
|
{% if multi_item_actions %}
|
||||||
<td>
|
<td>
|
||||||
{% if multi_select_item_properties %}
|
{% if multi_select_item_properties %}
|
||||||
@@ -115,17 +119,11 @@
|
|||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% empty %}
|
|
||||||
<tr>
|
|
||||||
<td class="text-center" colspan=99>
|
|
||||||
{% include 'appearance/no_results.html' %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% include 'pagination/pagination.html' %}
|
{% include 'pagination/pagination.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user