]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/base_content.html
hide the navigation links in the administration if the currently authenticated user...
[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>
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.4.2");
31             google.load("jqueryui", "1", {autoload:true});
32
33             var i18nLang = '{{settings.LANGUAGE_CODE}}';
34             var scriptUrl = '{{settings.FORCE_SCRIPT_NAME}}/'
35             var osqaSkin = '{{settings.OSQA_SKIN}}';
36
37             var messages = {
38                 username: '{{ user.username }}',
39                 confirm: "{% trans "Are you sure?" %}",
40                 yes: "{% trans "Yes" %}",
41                 no: "{% trans "No" %}",
42                 message: "{% trans "Message:" %}",
43                 cancel: "{% trans "Cancel" %}",
44                 close: "{% trans "Close" %}",
45                 ok: "{% trans "Ok" %}",
46                 matching_tags_url: "{% url matching_tags %}",
47                 word: "{% trans "word" %}",
48                 words: "{% trans "words" %}",
49                 character: "{% trans "character" %}",
50                 characters: "{% trans "characters" %}"
51             }
52         /*]]>*/
53         </script>
54         <script type="text/javascript" src="{% media  "/media/js/osqa.main.js" %}"></script>
55         {% if user_messages %}
56         <style type="text/css">
57             body { margin-top:2.4em; }
58         </style>
59         <script type="text/javascript">
60             $(document).ready(function() {
61                 var element = $('#validate_email_alert');
62                 element.click(function(){notify.close(true);})
63                 notify.show();
64             });
65         </script>
66         {% endif %}
67         {% if settings.USE_CUSTOM_HEAD|or_preview:request %}
68             {{ settings.CUSTOM_HEAD|or_preview:request|safe }}
69         {% endif %}
70         {% block forejs %}{% endblock %}
71         <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
72         {% loadregistry head_content %}{% endloadregistry %}
73     </head>
74     <body>
75         <div class="wrapper">
76         {% if settings.USE_CUSTOM_HEADER|or_preview:request %}
77             <div id="custom_header">
78                 {{ settings.CUSTOM_HEADER|or_preview:request|static_content:settings.CUSTOM_HEADER_RENDER_MODE }}
79             </div>
80         {% endif %}
81         {% include "header.html" %}
82         {% block page_center %}
83         <div id="wrapper">
84             <div id="room">
85                 <div id="CAFull">
86                     {% block content%}
87                     {% endblock%}
88
89                 </div>
90                 <div id="tail" style="clear:both;">
91                     {% block tail %}
92                     {% endblock %}
93                 </div>
94             </div>
95             <div class="spacer3"></div>
96         </div>
97         {% endblock %}
98         {% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
99             {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
100                 <div id="custom_footer">
101                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
102                 </div>
103             {% endifequal %}
104             <div id="ground">
105                 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
106                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
107                 {% else %}
108                     {% include "footer.html" %}
109                 {% endifequal %}
110             </div>
111             {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
112                 <div id="custom_footer">
113                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
114                 </div>
115             {% endifequal %}
116         {% else %}
117             <div id="ground">
118                 {% include "footer.html" %}
119             </div>
120         {% endif %}
121         {% block endjs %}
122         {% endblock %}
123         {% if settings.GOOGLE_ANALYTICS_KEY %}
124             <script type="text/javascript">
125                 var _gaq = _gaq || [];
126                 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
127                 _gaq.push(['_trackPageview']);
128
129                 (function() {
130                     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
131                     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
132                     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
133                 })();
134             </script>
135         {% endif %}
136         </div>
137
138         <!-- Put all elements with fixed position here, IE6 fixed position fix: http://ryanfait.com/position-fixed-ie6/ -->
139         <div class="notify" style="display:none">
140             {% autoescape off %}
141                 {% if user_messages %}
142                     {% for message in user_messages %}
143                           <p class="darkred">{{ message }}</p>
144                     {% endfor %}
145                 {% endif %}
146             {% endautoescape %}
147             <a id="close-notify" onclick="notify.close(true)">&#215;</a>
148         </div>
149     </body>
150 </html>
151 <!-- end template base_content.html -->