From 72fffb99f20760b5549cf27841f60d016a35929a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 7 Apr 2011 11:27:16 -0400 Subject: [PATCH] Redirect user to the website entry point if already logged and lands in the login template --- apps/web_theme/templates/web_theme_base.html | 5 +- apps/web_theme/templates/web_theme_login.html | 62 +++++++++++++------ apps/web_theme/templatetags/theme_tags.py | 14 ++++- 3 files changed, 58 insertions(+), 23 deletions(-) diff --git a/apps/web_theme/templates/web_theme_base.html b/apps/web_theme/templates/web_theme_base.html index 008e0bb12f..8d7bde0be4 100644 --- a/apps/web_theme/templates/web_theme_base.html +++ b/apps/web_theme/templates/web_theme_base.html @@ -9,7 +9,7 @@ {% block html_title %}{% endblock %} - {% block keywords %}{% endblock %} + {% block web_theme_head %}{% endblock %} @@ -57,8 +57,7 @@
{% block content_plain %}{% endblock %}
- {% endif %} - {% if not user.is_anonymous %} + {% else %}