From bc36d6fe5d92f83af7dc6e0b917ae4ebfe19d573 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 22 Jun 2012 18:20:36 -0400 Subject: Templates refactoring : added lists/list_nav.html --- templates/base.html | 73 +++++++++++++++++-------------------------- templates/lists/list_nav.html | 20 ++++++++++++ 2 files changed, 49 insertions(+), 44 deletions(-) create mode 100644 templates/lists/list_nav.html diff --git a/templates/base.html b/templates/base.html index c23b369..48d4809 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,51 +14,36 @@ -
{% block header %} -
- {% block usertools %} {% if user.is_authenticated %} -
{% if user.active %} Logged in as: - {% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}{% else %}{% trans 'Welcome,' %} - {% filter force_escape %}{% firstof user.first_name user.username %}{% - endfilter %}. {% endif %} - -
-
  • - Logout{% else %} -
  • - Login -
  • {% endif %} {% endblock %} {% if month_participants and month_discussions - %} -
      -
    • {{month_participants}} participants
    • -
    • {{month_discussions}} discussions
    • -
    • 1 saved
    • -
    {% endif %}
    {% if list_address %} -

    - {{list_address}} -

    -

    - All lists -

    - {% endif %} -
    - New thread -
    -
    -
    {% endblock %} -
    - +
    + {% block header %} + +
    + + + {% if user.is_authenticated %} +
    Logged in as: {{ user.username }}
    + {% endif %} + + {% if list_address %} + {% include 'lists/list_nav.html' %} + {% endif %} +
    + + {% endblock %} +
    + + {% block content %} {% endblock %} + {% block footer %} {% endblock %} {% block additionaljs %} {% endblock %} diff --git a/templates/lists/list_nav.html b/templates/lists/list_nav.html new file mode 100644 index 0000000..44ece68 --- /dev/null +++ b/templates/lists/list_nav.html @@ -0,0 +1,20 @@ +{% if month_participants and month_discussions %} + +{% endif %} + +{% if list_address %} +

    + {{list_address}} +

    +

    + All lists +

    + +{% endif %} + -- cgit