[extensions-web] Only put the search bar on places that make sense
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Only put the search bar on places that make sense
- Date: Thu, 15 Mar 2012 18:46:24 +0000 (UTC)
commit 5e19209c3c7193e4e82aab34238d4bf0dd07a036
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Mar 12 17:25:59 2012 -0400
Only put the search bar on places that make sense
For now, that means the extension list view. When we convert to client-side
templates, this will make a lot more sense.
.../extensions/templates/extensions/list.html | 6 ++++++
sweettooth/templates/base.html | 7 +++----
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/list.html b/sweettooth/extensions/templates/extensions/list.html
index f6e658b..70fea13 100644
--- a/sweettooth/extensions/templates/extensions/list.html
+++ b/sweettooth/extensions/templates/extensions/list.html
@@ -4,4 +4,10 @@
</div>
{% endblock %}
+{% block search-bar %}
+ <div class="right">
+ <input id="search_input" type="text" placeholder="Search..." />
+ </div>
+{% endblock %}
+
{% block navclass %}main{% endblock %}
diff --git a/sweettooth/templates/base.html b/sweettooth/templates/base.html
index 5738a67..9e9b9a7 100644
--- a/sweettooth/templates/base.html
+++ b/sweettooth/templates/base.html
@@ -54,10 +54,9 @@
<li class="local"><a href="{% url extensions-local %}">Installed extensions</a></li>
<li class="about"><a href="{% url extensions-about %}">About</a></li>
</ul>
-
- <div class="right">
- <input id="search_input" type="text" placeholder="Search..." />
- </div>
+
+ {% block search-bar %}
+ {% endblock %}
<div class="clear"></div>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]