This repository has been archived by the owner on May 28, 2019. It is now read-only.
/
base.html
127 lines (118 loc) · 4.95 KB
/
base.html
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html LANG="{{ LANG }}" dir="{{ DIR }}">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>{{ _('Firefox Flicks') }} : {% block page_title %}{% endblock %}</title>
{# OpenGraph Metadata #}
<meta property="og:title" content="{% block og_title %}{{ _('Firefox Flicks') }}{% endblock %}">
<meta property="og:type" content="{% block og_type %}website{% endblock %}">
<meta property="og:image" content="{% block og_image %}http://mozcom-cdn.mozilla.net/img/firefox-100.jpg{% endblock %}">
<meta property="og:url" content="{% block og_url %}http://www.mozilla.org/firefoxflicks/{% endblock %}">
<meta property="og:site_name" content="{{ _('Firefox Flicks') }}">
{% block meta_description -%}
<meta property="og:description" content="{% trans %}
Firefox Flicks is a contest that invites Firefox fans and filmmakers
from all over the world to create short videos (or "flicks") to help
tell the Firefox story.
{% endtrans %}">
{%- endblock %}
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" media="all" href=""/>
{% block site_css %}
{{ css('flicks_css') }}
{% endblock %}
<link rel="shortcut icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png">
</head>
<body class="{{ page_type }}"
data-mobile-cookie="{{ settings.MOBILE_COOKIE }}"
data-token="{{ csrf_token }}"
{% block body_data %}{% endblock %}>
<div class="wrapper">
{% include "shared/header.html" %}
{% block userbar %}
<div class="profile-header">
<div class="content-wrapper">
{% block titlebar %}
{% if request.user.is_active %}
<div class="avatar">
{{ gravatar_img(user, size=36) }}
</div>
<span class="title">{{ profile_name(user) }}</span>
{% endif %}
{% endblock %}
<a href="https://www.mozilla.org/firefox" class="download-firefox">
<span>{{ _('Download Firefox') }}</span>
</a>
<ul class="user-actions">
{% if request.user.is_active %}
<li>
<a href="{{ url('flicks.users.my_profile') }}">{{ _('My Profile') }}</a>  |
</li>
<li>
<a href="{{ url('flicks.users.logout') }}">{{ _('Log out') }}</a>  |
</li>
{% else %}
<li>
<a id="browserid" href="#">{{ _('Sign in') }}</a>
<form method="POST" action="{{ url('flicks.users.verify') }}">
{{ csrf() }}
{{ browserid_form.as_p()|safe }}
</form>
</li>
{% endif %}
</ul>
</div>
</div>
{% endblock %}
<div class="content-wrapper">
{% block content %}{% endblock %}
</div>
{% block videocontent %}{% endblock %}
{% block footer %}
<div id="footer">
<div class="footer-wrapper">
{% block homefooter %}{% endblock %}
<ul>
<li><a href="http://www.mozilla.org/en-US/privacy-policy.html"
title="{{ _('Privacy Policy') }}">{{ _('Privacy Policy') }}</a> <span> |</span></li>
<li><a href="http://www.mozilla.org/about/legal.html"
title="{{ _('Legal') }}">{{ _('Legal') }}</a> <span> |</span></li>
<li><a href="{{ url('flicks.base.partners') }}"
title="{{ _('Partners') }}">{{ _('Partners') }}</a></li>
</ul>
<div id="language-switcher">
<form class="languages go" method="GET">
<label for="language">{{ _('Other languages:') }}</label>
<select id="language" name="lang" dir="ltr">
{% for code, name in LANGUAGES|dictsort -%}
<option value="{{ code }}" {{ code|ifeq(LANG|lower, "selected") }}>
{{ name }}
</option>
{%- endfor %}
</select>
</form>
</div>
</div>
</div>
{% endblock %}
</div>
{% block site_js %}
{{ js('flicks_js') }}
<script src="https://browserid.org/include.js"></script>
{% endblock %}
{# Webtrends content #}
<noscript>
<div>
<img alt="DCSIMG"
id="DCSIMG"
width="1"
height="1"
src="//statse.webtrendslive.com/dcsipbyhuvz5bdy67sxp7uwwe_5l6z/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=firefoxflicks.mozilla.org">
</div>
</noscript>
</body>
</html>