-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbase.html
More file actions
111 lines (110 loc) · 5.46 KB
/
base.html
File metadata and controls
111 lines (110 loc) · 5.46 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<!--[if (lt IE 9)]><html class="no-js bad-ie" lang="{{ LANG }}" dir="{{ DIR }}"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="{{ LANG }}" dir="{{ DIR }}"><!--<![endif]-->
<head>
<title>{% if APP_STAGE %}[{{ APP_STAGE }}] | {% endif %}{% block page_title %}Mozilla Webmaker{% endblock %}</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.ico" type="image/x-icon">
<link rel="icon" href="{{ MEDIA_URL }}img/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="//www.mozilla.org/tabzilla/media/css/tabzilla.css">
{% block site_css %}
{{ css('make_devices') }}
{% endblock %}
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{{ js('jquery') }}
{% if not waffle.switch('no_track') %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35433268-12']);
_gaq.push(['_setDomainName', 'webmaker.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endif %}
</head>
<body id="{% block page_id %}generic-page{% endblock %}" class="{% block page_class %}section-{% block section_type %}global{% endblock %}{% endblock %}">
<script>
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, '');
</script>
{% if APP_MSG %}
<div id="app_stage_box">
<div class="constrained">{{ APP_MSG|safe }}</div>
</div>
{% endif %}
{% block header %}{% include "header.html" %}{% endblock %}
{% block content_wrapper -%}
<div id="content">
<div class="constrained">
{% block content %}{% endblock %}
</div>
</div>
{%- endblock %}
{% block footer %}
<div id="footer">
<div class="constrained">
<div class="col">
<h2><img src="{{ MEDIA_URL }}img/footer_logo.png" alt="Mozilla Webmaker" width="129" height="39" /></h2>
<h3>Admin</h3>
<ul>
{% if not (request and request.user and request.user.is_authenticated()) %}
<li><a href="{{ login_url() }}">Log in</a></li>
{% endif %}
{% block admin_menu_items %}
{% if user.is_authenticated() %}
<li><a href="{{ url('events.mine') }}">My events</a></li>
{% endif %}
{% endblock %}
{% if request and request.user and request.user.is_authenticated() %}
<li><a href="{{ url('logout') }}">Log out</a></li>
{% endif %}
</ul>
</div>
<div class="col">
<h3>About</h3>
{% block legal_links %}
<ul>
<li><a href="{{ url('page', 'about') }}">About Us</a></li>
<li><a href="mailto:mozparty@mozilla.org">Contact Us</a></li>
<li><a href="http://www.mozilla.org/privacy/websites/">Privacy Policy</a></li>
<li><a href="http://www.mozilla.org/about/legal.html">Legal Notices</a></li>
</ul>
{% endblock %}
</div>
<div class="col">
<h3>Connect with us</h3>
<ul>
<li><a href="{{ url('page', 'news') }}">News</a></li>
<li><a href="{{ url('page', 'support') }}">Support</a></li>
<li><a href="http://twitter.com/mozilla/">Twitter</a></li>
<li><a href="https://www.facebook.com/mozilla/">Facebook</a></li>
</ul>
</div>
<div class="col">
<h3>Make something</h3>
<ul>
<li><a href="{{ url('projects') }}">Projects</a></li>
<li><a href="{{ url('tools') }}">Tools</a></li>
<li><a href="{{ url('events') }}">Events</a></li>
</ul>
</div>
<div class="col">
<h3>Support our work</h3>
<ul>
<li><a href="https://donate.mozilla.org/page/contribute/join-mozilla?source=join_link">Donate</a></li>
<li><a href="https://mozillalabs.com/en-US/">Contribute</a></li>
<li><a href="https://donate.mozilla.org/page/contribute/firefoxtshirt">Buy a t-shirt</a></li>
</ul>
</div>
</div>
</div>
{% endblock %}
<script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js"></script>
</body>
</html>