aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-08-06 18:33:43 +0300
committerPriit Laes <plaes@plaes.org>2010-08-06 18:33:43 +0300
commitc37be7415b7bc26c807afaf707ef02edfd7f5daf (patch)
tree7030c06e20fc15fcfba1830f6b72f40a3da86c1c
parentRedirect away from account confirmation page when account is registered (diff)
downloadgsoc2010-grumpy-c37be7415b7bc26c807afaf707ef02edfd7f5daf.tar.gz
gsoc2010-grumpy-c37be7415b7bc26c807afaf707ef02edfd7f5daf.tar.bz2
gsoc2010-grumpy-c37be7415b7bc26c807afaf707ef02edfd7f5daf.zip
Improve templating a bit
-rw-r--r--grumpy/templates/dashboard.html10
-rw-r--r--grumpy/templates/layout.html9
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 %}
+<script type="text/javascript" language="javascript" src="{{ url_for('static', filename='js/jquery.min.js' )}}"></script>
+<script type="text/javascript" language="javascript" src="{{ url_for('static', filename='js/jquery.dataTables.min.js' )}}"></script>
+<script type="text/javascript">
+$(document).ready(function() {
+ $('#owned_pkgs').dataTable();
+} );
+</script>
+{% endblock %}
{% block body %}
<h2>Hi, {{ g.user.email.split('@')[0] }}</h2>
<h3>Managed packages</h3>
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 @@
<!doctype html>
<head>
<title>{% block title %}Welcome{% endblock %} | Grumpy</title>
-<script type="text/javascript" language="javascript" src="{{ url_for('static', filename='js/jquery.min.js' )}}"></script>
-<script type="text/javascript" language="javascript" src="{{ url_for('static', filename='js/jquery.dataTables.min.js' )}}"></script>
-<script type="text/javascript">
-$(document).ready(function() {
- $('#owned_pkgs').dataTable();
-} );
-</script>
+{% block script %}
+{% endblock %}
</head>
{{ userinfo.show_box(g) }}
<div class=menu>