Mercurial > public > sg101
comparison gpp/templates/base.html @ 500:886cc99e8406
For #240, add an "ajaxy" login via a jQuery UI pop-up dialog to streamline the login process.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Dec 2011 02:48:18 +0000 |
parents | 61b81b97f02f |
children | 8631d32e6b16 |
comparison
equal
deleted
inserted
replaced
499:1a09a7bea000 | 500:886cc99e8406 |
---|---|
7 xml:lang="en" lang="en"> | 7 xml:lang="en" lang="en"> |
8 {% load url from future %} | 8 {% load url from future %} |
9 {% load shoutbox_tags %} | 9 {% load shoutbox_tags %} |
10 {% load irc_tags %} | 10 {% load irc_tags %} |
11 {% load potd_tags %} | 11 {% load potd_tags %} |
12 {% load messages_tags %} | |
13 {% load script_tags %} | 12 {% load script_tags %} |
14 {% load poll_tags %} | 13 {% load poll_tags %} |
15 {% load core_tags %} | 14 {% load core_tags %} |
16 {% load cache %} | 15 {% load cache %} |
17 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title> | 16 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title> |
33 {% block custom_css %}{% endblock %} | 32 {% block custom_css %}{% endblock %} |
34 {% block custom_js %}{% endblock %} | 33 {% block custom_js %}{% endblock %} |
35 <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.cycle.all.min.js"></script> | 34 <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.cycle.all.min.js"></script> |
36 <script type="text/javascript" src="{{ STATIC_URL }}js/shoutbox.js"></script> | 35 <script type="text/javascript" src="{{ STATIC_URL }}js/shoutbox.js"></script> |
37 <link rel="shortcut icon" type="image/vnd.microsoft.com" href="{{ STATIC_URL }}favicon.ico" /> | 36 <link rel="shortcut icon" type="image/vnd.microsoft.com" href="{{ STATIC_URL }}favicon.ico" /> |
37 {% if not user.is_authenticated %} | |
38 {% script_tags "jquery-ui" %} | |
39 <script type="text/javascript" src="{{ STATIC_URL }}js/ajax_login.js"></script> | |
40 {% endif %} | |
38 </head> | 41 </head> |
39 <body>{% block begin_body %}{% endblock %} | 42 <body>{% block begin_body %}{% endblock %} |
40 <div id="page" class="container"> | 43 <div id="page" class="container"> |
41 <div id="header" class="span-24"> | 44 <div id="header" class="span-24"> |
42 <p><a href="/" title="SG101 Home"><img src="{{ STATIC_URL }}themes/kds/sgLogo.png" alt="SurfGuitar101.com Logo" width="446" height="103" /></a></p> | 45 <p><a href="/" title="SG101 Home"><img src="{{ STATIC_URL }}themes/kds/sgLogo.png" alt="SurfGuitar101.com Logo" width="446" height="103" /></a></p> |
43 </div> | 46 </div> |
44 <div id="header-nav" class="span-24"> | 47 <div id="header-nav" class="span-24"> |
45 <ul> | 48 {% include "navbar.html" %} |
46 {% if user.is_authenticated %} | |
47 <li>Welcome, <a href="{% url 'bio-me' %}">{{ user.username }}</a></li> | |
48 <li><a href="{% url 'forums-index' %}">Forums</a></li> | |
49 <li>{% unread_messages user %}</li> | |
50 <li><a href="{% url 'haystack_search' %}">Search</a></li> | |
51 <li><a href="{% url 'accounts-logout' %}">Logout</a></li> | |
52 {% else %} | |
53 <li><a href="{% url 'accounts-login' %}">Login</a></li> | |
54 <li><a href="{% url 'accounts-register' %}">Register</a></li> | |
55 {% endif %} | |
56 </ul> | |
57 </div> | 49 </div> |
58 | 50 |
59 <div id="content-secondary" class="span-4 append-1"> | 51 <div id="content-secondary" class="span-4 append-1"> |
60 <ul class="nav-left"> | 52 <ul class="nav-left"> |
61 <li><a href="{% url 'home' %}">Home</a></li> | 53 <li><a href="{% url 'home' %}">Home</a></li> |
118 </p> | 110 </p> |
119 <p>Thanks to all the surf bands, past and present. And thanks to all the fans who care about and keep surf | 111 <p>Thanks to all the surf bands, past and present. And thanks to all the fans who care about and keep surf |
120 music alive.</p> | 112 music alive.</p> |
121 </div> | 113 </div> |
122 | 114 |
123 </div>{% block end_body %}{% endblock %} | 115 </div> |
116 {% if not user.is_authenticated %} | |
117 {% include "accounts/ajax_login_form.html" %} | |
118 {% endif %} | |
119 {% block end_body %}{% endblock %} | |
124 </body> | 120 </body> |
125 </html> | 121 </html> |