]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/base_content.html
Remove DJANGO_VERSION from the recommended settings
[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 extra_tags extra_filters markup ui_registry %}
4 <html xmlns="http://www.w3.org/1999/xhtml">
5     <head>{% block after_head_js %}{% endblock %}
6         <title>{% block fulltitle %}{% block title %}{% endblock %} - {{ settings.APP_SHORT_NAME }}{% endblock %}</title>
7         <meta name="description" content="{% block metadescription %}{{ settings.APP_DESCRIPTION }}{% endblock %}" />
8         <meta name="keywords" content="{% block metakeywords %}{{ settings.APP_KEYWORDS }}{% endblock %}" />
9         {% block meta %}{% endblock %}
10         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11         {% if settings.GOOGLE_SITEMAP_CODE %}
12         <meta name="google-site-verification" content="{{ settings.GOOGLE_SITEMAP_CODE }}" />
13         {% endif %}
14         <link rel="shortcut icon" href="{{ settings.APP_FAVICON }}" />
15         <link href="{% media  "/media/style/style.css" %}" rel="stylesheet" type="text/css" />
16         {% if settings.USE_CUSTOM_CSS|or_preview:request %}
17         <link href="{% url custom_css %}" rel="stylesheet" type="text/css" />
18         {% endif %}
19         <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" />
20         <!--[if IE 6]>
21         <style type="text/css">
22         img, div, a { behavior: url({% media "/media/iepngfix/iepngfix.htc" %}) }
23         </style>
24         <![endif]-->
25         {% block forestyle %}{% endblock %}
26
27         <script src="http://www.google.com/jsapi" type="text/javascript"></script>
28         <script type="text/javascript">
29         /*<![CDATA[*/
30             google.load("jquery", "1");
31             google.load("jqueryui", "1", {autoload:true});
32
33             var i18nLang = '{{ settings.LANGUAGE_CODE }}';
34             var appUrl = '{{ settings.APP_URL }}'
35             var scriptUrl = '{{ settings.FORCE_SCRIPT_NAME }}/'
36             var osqaSkin = '{{ settings.OSQA_SKIN }}';
37
38             var messages = {
39                 username: '{{ user.username }}',
40                 confirm: "{% trans "Are you sure?" %}",
41                 yes: "{% trans "Yes" %}",
42                 no: "{% trans "No" %}",
43                 message: "{% trans "Message:" %}",
44                 cancel: "{% trans "Cancel" %}",
45                 close: "{% trans "Close" %}",
46                 ok: "{% trans "Ok" %}",
47                 matching_tags_url: "{% url matching_tags %}",
48                 word: "{% trans "word" %}",
49                 words: "{% trans "words" %}",
50                 character: "{% trans "character" %}",
51                 characters: "{% trans "characters" %}"
52             }
53         /*]]>*/
54         </script>
55         <script type="text/javascript" src="{% media  "/media/js/osqa.main.js" %}"></script>
56         {% if user_messages %}
57         <style type="text/css">
58             body { margin-top:2.4em; }
59         </style>
60         <script type="text/javascript">
61             $(document).ready(function() {
62                 var element = $('#validate_email_alert');
63                 element.click(function(){notify.close(true);})
64                 notify.show();
65             });
66         </script>
67         {% endif %}
68         {% if settings.USE_CUSTOM_HEAD|or_preview:request %}
69             {{ settings.CUSTOM_HEAD|or_preview:request|safe }}
70         {% endif %}
71         {% block forejs %}{% endblock %}
72         <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
73         {% loadregistry head_content %}{% endloadregistry %}
74     </head>
75     <body>
76         <div class="wrapper">
77         {% if settings.USE_CUSTOM_HEADER|or_preview:request %}
78             <div id="custom_header">
79                 {{ settings.CUSTOM_HEADER|or_preview:request|static_content:settings.CUSTOM_HEADER_RENDER_MODE }}
80             </div>
81         {% endif %}
82         {% include "header.html" %}
83         {% block page_center %}
84         <div id="wrapper">
85             <div id="room">
86                 <div id="CAFull">
87                     {% block content%}
88                     {% endblock%}
89
90                 </div>
91                 <div id="tail" style="clear:both;">
92                     {% block tail %}
93                     {% endblock %}
94                 </div>
95             </div>
96             <div class="spacer3"></div>
97         </div>
98         {% endblock %}
99         {% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
100             {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
101                 <div id="custom_footer">
102                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
103                 </div>
104             {% endifequal %}
105             <div id="ground">
106                 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
107                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
108                 {% else %}
109                     {% include "footer.html" %}
110                 {% endifequal %}
111             </div>
112             {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
113                 <div id="custom_footer">
114                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
115                 </div>
116             {% endifequal %}
117         {% else %}
118             <div id="ground">
119                 {% include "footer.html" %}
120             </div>
121         {% endif %}
122         {% block endjs %}
123         {% endblock %}
124         {% if settings.GOOGLE_ANALYTICS_KEY %}
125             <script type="text/javascript">
126                 var _gaq = _gaq || [];
127                 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
128                 _gaq.push(['_trackPageview']);
129
130                 (function() {
131                     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
132                     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
133                     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
134                 })();
135             </script>
136         {% endif %}
137         </div>
138
139         <!-- Put all elements with fixed position here, IE6 fixed position fix: http://ryanfait.com/position-fixed-ie6/ -->
140         <div class="notify" style="display:none">
141             {% autoescape off %}
142                 {% if user_messages %}
143                     {% for message in user_messages %}
144                           <p class="darkred">{{ message }}</p>
145                     {% endfor %}
146                 {% endif %}
147             {% endautoescape %}
148             <a id="close-notify" onclick="notify.close(true)">&#215;</a>
149         </div>
150     </body>
151 </html>
152 <!-- end template base_content.html -->