]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/base_content.html
Solves several email encoding issues.
[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         {% block forestyle %}{% endblock %}
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             var messages = {
27                 username: '{{ user.username }}',
28                 confirm: "{% trans "Are you sure?" %}",
29                 yes: "{% trans "Yes" %}",
30                 no: "{% trans "No" %}",
31                 message: "{% trans "Message:" %}",
32                 cancel: "{% trans "Cancel" %}",
33                 close: "{% trans "Close" %}",
34                 ok: "{% trans "Ok" %}"
35             }
36         /* ]] */
37         </script>
38         <script type='text/javascript' src='{% media  "/media/js/osqa.main.js" %}'></script>
39         {% if user_messages %}
40         <style type="text/css">
41             body { margin-top:2.4em; }
42         </style>
43         <script type="text/javascript">
44             $(document).ready(function() {
45                 var element = $('#validate_email_alert');
46                 element.click(function(){notify.close(true);})
47                 notify.show();
48             });
49         </script>
50         {% endif %}
51         {% block forejs %}{% endblock %}
52         <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
53     </head>
54     <body>
55         <div class="notify" style="display:none">
56             {% autoescape off %}
57                 {% if user_messages %}
58                     {% for message in user_messages %}
59                           <p class="darkred">{{ message }}</p>
60                     {% endfor %}
61                 {% endif %}
62             {% endautoescape %}
63             <a id="close-notify" onclick="notify.close(true)">&times;</a>
64         </div>
65         {% include "header.html" %}
66         {% block page_center %}
67         <div id="wrapper">
68             <div id="room">
69                 <div id="CAFull">
70                     {% block content%}
71                     {% endblock%}
72
73                 </div>
74                 <div id="tail" style="clear:both;">
75                     {% block tail %}
76                     {% endblock %}
77                 </div>
78             </div>
79             <div class="spacer3"></div>
80         </div>
81         {% endblock %}
82         {% include "footer.html" %}
83         {% block endjs %}
84         {% endblock %}
85         {% if settings.GOOGLE_ANALYTICS_KEY %}
86             <script type="text/javascript">
87                 var _gaq = _gaq || [];
88                 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
89                 _gaq.push(['_trackPageview']);
90
91                 (function() {
92                     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
93                     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
94                     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
95                 })();
96             </script>
97         {% endif %}
98     </body>
99 </html>
100 <!-- end template base_content.html -->