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