Merge "Add message if no apps are in the database"

This commit is contained in:
Jenkins 2014-04-25 19:43:26 +00:00 committed by Gerrit Code Review
commit c29882c3ab
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">