From c37be7415b7bc26c807afaf707ef02edfd7f5daf Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Fri, 6 Aug 2010 18:33:43 +0300 Subject: Improve templating a bit --- grumpy/templates/dashboard.html | 10 ++++++++++ grumpy/templates/layout.html | 9 ++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/grumpy/templates/dashboard.html b/grumpy/templates/dashboard.html index 0bec1f0..59e05f9 100644 --- a/grumpy/templates/dashboard.html +++ b/grumpy/templates/dashboard.html @@ -1,4 +1,14 @@ {% extends "layout.html" %} +{% block title %}Your Dashboard{% endblock %} +{% block script %} + + + +{% endblock %} {% block body %}

Hi, {{ g.user.email.split('@')[0] }}

Managed packages

diff --git a/grumpy/templates/layout.html b/grumpy/templates/layout.html index be8339f..3823903 100644 --- a/grumpy/templates/layout.html +++ b/grumpy/templates/layout.html @@ -2,13 +2,8 @@ {% block title %}Welcome{% endblock %} | Grumpy - - - +{% block script %} +{% endblock %} {{ userinfo.show_box(g) }}