]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/base.html
use {% url opensearch %} instead of FORUM_SCRIPT_ALIAS
[osqa.git] / forum / skins / default / templates / base.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <!-- template base.html -->
3 {% load extra_filters %}
4 {% load extra_tags %}
5 {% load i18n %}
6 <html xmlns="http://www.w3.org/1999/xhtml">
7     <head>
8         <title>{% block fulltitle %}{% block title %}{% endblock %} - {{ settings.APP_SHORT_NAME }}{% endblock %}</title>
9         {% spaceless %}
10         {% block meta %}{% endblock %}
11         {% endspaceless %}
12         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
13         {% if settings.GOOGLE_SITEMAP_CODE %}
14         <meta name="google-site-verification" content="{{settings.GOOGLE_SITEMAP_CODE}}" />
15         {% endif %}
16         <link rel="shortcut icon" href="{{ settings.APP_FAVICON }}" />
17         <link href="{% media  "/media/style/style.css" %}" rel="stylesheet" type="text/css" />
18         <script src="http://www.google.com/jsapi" type="text/javascript"></script>
19         <script type="text/javascript">google.load("jquery", "1.4.2");</script>
20         <script type="text/javascript">
21         /* <![CDATA[ */
22             var i18nLang = '{{settings.LANGUAGE_CODE}}';
23             var scriptUrl = '/{{settings.FORUM_SCRIPT_ALIAS}}'
24             var osqaSkin = '{{settings.OSQA_SKIN}}';
25         /* ]] */
26         </script>
27         <script type='text/javascript' src='{% media  "/media/js/osqa.main.js" %}'></script>
28         {% if user_messages %}
29         <style type="text/css">
30             body { margin-top:2.4em; }
31         </style>
32         <script type="text/javascript">
33             $(document).ready(function() {
34                 $('#validate_email_alert').click(function(){notify.close(true)})
35                 notify.show();
36             });
37         </script>
38         {% endif %}
39         {% block forejs %}{% endblock %}
40
41         <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
42     </head>
43     <body>
44         <div class="notify" style="display:none">
45             {% autoescape off %}
46                 {% if user_messages %}
47                     {% for message in user_messages %}
48                           <p class="darkred">{{ message }}</p>
49                     {% endfor %}
50                 {% endif %}
51             {% endautoescape %}
52             <a id="close-notify" onclick="notify.close(true)">&times;</a>
53         </div>
54         {% include "header.html" %}
55         <div id="wrapper">
56             <div id="room">
57                 <div id="CALeft">
58                     {% block content%}
59                     {% endblock%}
60
61                 </div>
62                 <div id="CARight">
63                     {% block sidebar%}
64                     {% endblock%}
65
66                 </div>
67                 <div id="tail" style="clear:both;">
68                     {% block tail %}
69                     {% endblock %}
70                 </div>
71             </div>
72             <div class="spacer3"></div>
73         </div>
74         {% include "footer.html" %}
75         {% block endjs %}
76         {% endblock %}
77     </body>
78 </html>
79  <!-- end template base.html -->