diff options
| author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-06-11 18:14:11 -0400 |
|---|---|---|
| committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-06-11 18:14:11 -0400 |
| commit | 0e4bf7c225fe2b68296f3a644755b49104459c14 (patch) | |
| tree | a88682836a489890923fe81391c46d3d6a5924d1 /templates/base.html | |
| parent | ef266b315341440006ac504dc24b688cdcdc2d51 (diff) | |
Basic configuration stuff
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index dc84fcb..233d81b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,6 +15,8 @@ {% endblock %} </head> +{% load i18n %} + <body> <!-- Header --> <div class="header"> @@ -28,6 +30,21 @@ {% endif %} <li id="page_date">{{month}}</li> </ul> + {% block usertools %} + {% if user.is_authenticated %} + <div id="user-tools"> + {% if user.active %} + Logged in as: <a href="{% url user_profile %}">{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</a> + {% else %}{% trans 'Welcome,' %} + <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>. + {% endif %} + <ul class="userlinks"> + {% block userlinks %}{% endblock %} + </ul> + </div> + {% endif %} + {% endblock %} + {% if month_participants and month_discussions %} <ul class="inline-block" id="top_right"> <li class="participant"> {{month_participants}} participants</li> |
