Add message if no apps are in the database

Add clearer messaging based on discussion/consensus on IRC #murano.

Closes-Bug: #1305548
Change-Id: If6e8a3a159078c8f3847ad72157229e2d12c7aa2
This commit is contained in:
Brian Tully 2014-04-23 15:28:55 -04:00
parent ea9f2b359b
commit 1d8cdb21fa
2 changed files with 22 additions and 10 deletions

View File

@ -192,3 +192,7 @@ line-height: 22px;
.app-icon.server {
margin-right:20px;
}
.no-results {
margin-bottom: 25px;
}

View File

@ -43,11 +43,15 @@
{% block main %}
<div class="table_wrapper">
<h3 class="quota-heading">Latest Apps</h3>
<div class="app-row app-list row">
{% for app in latest_list %}
{% include 'catalog/app_tile.html' %}
{% endfor %}
</div>
{% if latest_list|length > 0 %}
<div class="app-row app-list row">
{% for app in latest_list %}
{% include 'catalog/app_tile.html' %}
{% endfor %}
</div>
{% else %}
<p class="no-results">{% trans "There are no applications available at this time." %}</p>
{% endif %}
<h3 class="quota-heading">App Category: <div class="header dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ current_category }}<b class="caret"></b></a>
@ -61,11 +65,15 @@
</div>
</h3>
<div class="app-row app-list row">
{% for app in object_list %}
{% include 'catalog/app_tile.html' %}
{% endfor %}
</div>
{% if object_list|length > 0 %}
<div class="app-row app-list row">
{% for app in object_list %}
{% include 'catalog/app_tile.html' %}
{% endfor %}
</div>
{% else %}
<p class="no-results">{% trans "There are no applications matching your search criteria." %}</p>
{% endif %}
{% if is_paginated %}
<div class="btn-toolbar centering">