]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/base_content.html
d1d3bd9c170d85a566b6359b2cc5cf4cd1cc1967
[osqa.git] / forum / skins / default / templates / base_content.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <!-- base_content.html -->
3 {% load i18n %}
4 {% load extra_tags %}
5 <html xmlns="http://www.w3.org/1999/xhtml">
6     <head>
7         <title>{% block fulltitle %}{% block title %}{% endblock %} - {{ settings.APP_SHORT_NAME }}{% endblock %}</title>
8         {% block meta %}{% endblock %}
9         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
10         {% if settings.GOOGLE_SITEMAP_CODE %}
11         <meta name="google-site-verification" content="{{ settings.GOOGLE_SITEMAP_CODE }}" />
12         {% endif %}
13         <link rel="shortcut icon" href="{{ settings.APP_FAVICON }}" />
14         <link href="{% media  "/media/style/style.css" %}" rel="stylesheet" type="text/css" />
15         {% block forestyle %}{% endblock %}
16         <script src="http://www.google.com/jsapi" type="text/javascript"></script>
17         <script type="text/javascript">google.load("jquery", "1.4.2");</script>
18         <script type="text/javascript">
19         /* <![CDATA[ */
20             var i18nLang = '{{settings.LANGUAGE_CODE}}';
21             var scriptUrl = '/{{settings.FORUM_SCRIPT_ALIAS}}'
22             var osqaSkin = '{{settings.OSQA_SKIN}}';
23
24             var messages = {
25                 username: '{{ user.username }}',
26                 confirm: "{% trans "Are you sure?" %}",
27                 yes: "{% trans "Yes" %}",
28                 no: "{% trans "No" %}",
29                 message: "{% trans "Message:" %}",
30                 cancel: "{% trans "Cancel" %}",
31                 close: "{% trans "Close" %}",
32                 ok: "{% trans "Ok" %}"
33             }
34         /* ]] */
35         </script>
36         <script type='text/javascript' src='{% media  "/media/js/osqa.main.js" %}'></script>
37         {% if user_messages %}
38         <style type="text/css">
39             body { margin-top:2.4em; }
40         </style>
41         <script type="text/javascript">
42             $(document).ready(function() {
43                 var element = $('#validate_email_alert');
44                 element.click(function(){notify.close(true);})
45                 notify.show();
46             });
47         </script>
48         {% endif %}
49         {% block forejs %}{% endblock %}
50         <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
51     </head>
52     <body>
53         <div class="notify" style="display:none">
54             {% autoescape off %}
55                 {% if user_messages %}
56                     {% for message in user_messages %}
57                           <p class="darkred">{{ message }}</p>
58                     {% endfor %}
59                 {% endif %}
60             {% endautoescape %}
61             <a id="close-notify" onclick="notify.close(true)">&times;</a>
62         </div>
63         {% include "header.html" %}
64         {% block page_center %}
65         <div id="wrapper">
66             <div id="room">
67                 <div id="CAFull">
68                     {% block content%}
69                     {% endblock%}
70
71                 </div>
72                 <div id="tail" style="clear:both;">
73                     {% block tail %}
74                     {% endblock %}
75                 </div>
76             </div>
77             <div class="spacer3"></div>
78         </div>
79         {% endblock %}
80         {% include "footer.html" %}
81         {% block endjs %}
82         {% endblock %}
83         {% if settings.GOOGLE_ANALYTICS_KEY %}
84             <script type="text/javascript">
85                 var _gaq = _gaq || [];
86                 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
87                 _gaq.push(['_trackPageview']);
88
89                 (function() {
90                     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
91                     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
92                     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
93                 })();
94             </script>
95         {% endif %}
96     </body>
97 </html>
98 <!-- end template base_content.html -->