[extensions-web] Show an empty list if there are no extensions
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Show an empty list if there are no extensions
- Date: Tue, 25 Oct 2011 01:32:02 +0000 (UTC)
commit 79231d53b5e17dc860501ac7517b2c7d3f1ea262
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 24 20:38:56 2011 -0400
Show an empty list if there are no extensions
.../extensions/templates/extensions/list.html | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/list.html b/sweettooth/extensions/templates/extensions/list.html
index 301fea8..daad039 100644
--- a/sweettooth/extensions/templates/extensions/list.html
+++ b/sweettooth/extensions/templates/extensions/list.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% block body %}
<ul class="extensions">
+ {% if extension_list %}
{% for extension in extension_list %}
{% with extension.latest_version as version %}
<li class="extension">
@@ -16,6 +17,11 @@
</li>
{% endwith %}
{% endfor %}
+ {% else %}
+ <div class="empty">
+ There are no extensions.
+ </div>
+ {% endif %}
</ul>
{% load paginator %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]