[extensions-web] Split user menu out to separate template.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Split user menu out to separate template.
- Date: Wed, 26 Sep 2012 04:30:44 +0000 (UTC)
commit eb43a2868e4ea6be50eb482132fefc52e8f493c7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 26 01:07:47 2012 -0300
Split user menu out to separate template.
sweettooth/templates/base.html | 12 +-----------
sweettooth/templates/usermenu.html | 11 +++++++++++
2 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/sweettooth/templates/base.html b/sweettooth/templates/base.html
index 7b65744..c95826b 100644
--- a/sweettooth/templates/base.html
+++ b/sweettooth/templates/base.html
@@ -29,17 +29,7 @@
{% endspaceless %}
</div>
- {% if request.user.is_authenticated %}
- <div class="user_settings user_popup">
- <ul>
- <li><a href="{% url auth-profile user=request.user.username %}">Your profile</a></li>
- <li><a href="{% url auth-settings user=request.user.username %}">Settings</a></li>
- <li><a href="{% url auth-logout %}">Log out</a></li>
- </ul>
- </div>
- {% else %}
- {% include "registration/login_popup_form.html" %}
- {% endif %}
+ {% include "usermenu.html" %}
</div>
</div>
diff --git a/sweettooth/templates/usermenu.html b/sweettooth/templates/usermenu.html
new file mode 100644
index 0000000..b92fce5
--- /dev/null
+++ b/sweettooth/templates/usermenu.html
@@ -0,0 +1,11 @@
+{% if request.user.is_authenticated %}
+<div class="user_settings user_popup">
+ <ul>
+ <li><a href="{% url auth-profile user=request.user.username %}">Your profile</a></li>
+ <li><a href="{% url auth-settings user=request.user.username %}">Settings</a></li>
+ <li><a href="{% url auth-logout %}">Log out</a></li>
+ </ul>
+</div>
+{% else %}
+{% include "registration/login_popup_form.html" %}
+{% endif %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]