diff gpp/templates/base.html @ 12:f408971657b9

Changed the shoutbox: posts are now made by Ajax. The smiley farm is loaded only on demand. jQuery is now in the base template. May add scrolling later.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Apr 2009 01:13:17 +0000
parents dbd703f7d63a
children aa2b41c5212b
line wrap: on
line diff
--- a/gpp/templates/base.html	Tue Apr 14 02:35:35 2009 +0000
+++ b/gpp/templates/base.html	Wed Apr 15 01:13:17 2009 +0000
@@ -6,6 +6,7 @@
 {% load irc_tags %}
 {% load potd_tags %}
 {% load messages_tags %}
+{% load script_tags %}
 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title>
 <meta http-equiv="Content-Type" content="text/html" />
 <meta http-equiv="Content-Language" content="en-US" />
@@ -19,10 +20,13 @@
 <![endif]-->
 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/base.css" />
 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/shoutbox.css" />
-<!--<script type="text/javascript" src="{{ MEDIA_URL }}js/shoutbox.js"></script>-->
+{% script_tags "jquery" %}
 {% block custom_head %}{% endblock %}
 {% block custom_css %}{% endblock %}
 {% block custom_js %}{% endblock %}
+{% if user.is_authenticated %}
+<script type="text/javascript" src="{{ MEDIA_URL }}js/shoutbox.js"></script>
+{% endif %}
 <!-- <link rel="shortcut icon" type="image/vnd.microsoft.com" href="{{ MEDIA_URL }}images/favicon.ico" /> -->
 </head>
 <body>