[extensions-web] extensions: Make the list page correct HTML
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: Make the list page correct HTML
- Date: Mon, 12 Dec 2011 19:29:38 +0000 (UTC)
commit b69149bbb77d94c35195e68b99ac85e36bb6db3e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 12 14:10:00 2011 -0500
extensions: Make the list page correct HTML
The paginator should go outside the <ul>, and the empty extensions
notification should go outside, too
.../extensions/templates/extensions/list.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/list.html b/sweettooth/extensions/templates/extensions/list.html
index 9b4b33c..8681848 100644
--- a/sweettooth/extensions/templates/extensions/list.html
+++ b/sweettooth/extensions/templates/extensions/list.html
@@ -1,7 +1,5 @@
{% extends "base.html" %}
{% block body %}
- <ul class="extensions">
- {% if extension_list %}
{% load paginator %}
{% if page_obj.has_other_pages %}
<div class="paginator">
@@ -9,6 +7,8 @@
</div>
{% endif %}
+ {% if extension_list %}
+ <ul class="extensions">
{% for extension in extension_list %}
<li class="extension" data-svm="{{ extension.visible_shell_version_map_json }}">
<h3 class="extension-name"><a href="{% url extensions-detail pk=extension.pk %}" class="title-link"><img src="{{ extension.icon.url }}" class="icon">{{ extension.name }}</a></h3>
@@ -18,12 +18,12 @@
</p>
</li>
{% endfor %}
+ </ul>
{% else %}
<div class="empty">
There are no extensions.
</div>
{% endif %}
- </ul>
{% if page_obj.has_other_pages %}
<div class="paginator">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]