summaryrefslogtreecommitdiffstats
path: root/templates/base_content.html
blob: 39627a0e05c411d902719c712685b48f8b4497f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{% load i18n %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>{% block title %}{% endblock %} - {{ APP_TITLE }}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="verify-v1" content="55uGNnQVJW8p1bbXeF/Xbh9I7nZBM/wLhRz6N/I1kkA=" />
        <link rel="shortcut icon" href="/content/images/favicon.ico" >
        <link href="/content/style/style.css" rel="stylesheet" type="text/css" />
		 {% spaceless %}
        {% block forestyle %}{% endblock %}
        {% endspaceless %}
        <script src="http://www.google.com/jsapi"></script>
        <script>google.load("jquery", "1.2.6");</script>
		<script type="text/javascript">
			var i18nLang = 'en';
		</script>
        <script type='text/javascript' src='/content/js/com.cnprog.i18n.js'></script>
	    <script type='text/javascript' src='/content/js/jquery.i18n.js'></script>
        <script type='text/javascript' src='/content/js/com.cnprog.utils.js'></script>

       <!-- <script type="text/javascript">
        var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : "http://cdn.uservoice.com";
        document.write(unescape("%3Cscript src='" + uservoiceJsHost + "/javascripts/widgets/tab.js' type='text/javascript'%3E%3C/script%3E"))
        </script>
        <script type="text/javascript">
        UserVoice.Tab.show({ 
			//EDIT!!!
            key: 'uservoicekey',
            host: 'where.uservoice.com', 
            forum: 'general', 
            alignment: 'left', /* 'left', 'right' */
            background_color:'#777', 
            text_color: 'white', /* 'white', 'black' */
            hover_color: '#06C',
            lang: 'en' /* 'en', 'de', 'nl', 'es', 'fr' */
        })
        </script>-->
		<!-- todo move this to settings-->

        {% with request.user.get_messages as messages%}
        {% if messages %}
        <style type="text/css">
            body { margin-top:2.4em; }
        </style>
        <script type="text/javascript">
            $().ready(function() {
                notify.show();
            });
        </script>
        {% endif %}
        {% endwith %}
      
        {% block forejs %}
        {% endblock %}
    </head>
    <body>
        <div class="notify" style="display:none">
            <span>{% if request.user.get_messages %}
            {% trans "congratulations, community gave you a badge" %}:{% for message in request.user.get_messages %}
            <font class="darkred">{{ message }}</font>, {% endfor %}{% trans "see" %}
            <a href="{{ request.user.get_profile_url }}">{% trans "profile" %}</a>{% endif %}</span>
            <a class="close-notify" onclick="notify.close(true)">&times;</a>
        </div>
        {% include "header.html" %}
        <div id="wrapper">
            <div id="room">
                <div id="CAFull">
                    {% block content%}
                    {% endblock%}

                </div>
                <div id="tail" style="clear:both;">
                    {% block tail %}
                    {% endblock %}
                </div>
            </div>
            <div class="spacer3"></div>
        </div>
        {% include "footer.html" %}
        {% block endjs %}
        {% endblock %}
    </body>
</html>