base.html 6.92 KB
Newer Older
Okhin's avatar
Okhin committed
1
2
{% load i18n %}
{% load bt %}
3
{% load bootstrap3 %}
Okhin's avatar
Okhin committed
4
<html>
5
6
7
	<head>
		<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
		<meta http-equiv="content-language" content="en" />
Okhin's avatar
Okhin committed
8
		<meta name="description" content="The Internet bugtracker to report cases of net neutrality violations." />
9
10
11
12
13
14
15
16
17
		<meta name="keywords" content="internet network neutrality" />
		<meta name="robots" content="archive,index,follow" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>{% block title %}[!] Respect My Net {% endblock %}</title>
		<link rel="alternate" type="application/atom+xml" title="Atom feed" href="{% url 'atom_output' %}" />
		<link rel="alternate" type="application/rss+xml" title="RSS feed" href="{% url 'rss_output' %}" />
		<meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
		{% block rss %}
		{% endblock %}
Okhin's avatar
Okhin committed
18
		<link rel="stylesheet" type="text/css" media="all" href="/static/css/bootstrap.css" />
19
		<link rel="stylesheet" type="text/css" media="all" href="/static/css/style.css" />
Okhin's avatar
Okhin committed
20
		{% bootstrap_messages %}
21
22
23
24
		{% block styles %}
		{% endblock %}
	</head>
	<body>
Okhin's avatar
Okhin committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
		<div id="header">
			<h1><a href="{% url 'homepage' %}">Respect My Net <span>{% trans "name and shame operators restricting access to the Internet" %}</span></a></h1>
			<div id="user">
				<p>
				{% if user.is_authenticated %}
				{{ user.username }},
				<a href="{%root_url%}/accounts/logout">{% trans "Logout" %}</a>
				<span>or</span>
				<a href="{%root_url%}/admin/">{% trans "Admin" %}</a>
				{% block adminext %}
				{% endblock %}
				{% else %}
				<a href="{%root_url%}/admin/" id="login">{% trans "Login" %}</a>
				{% endif %}
				</p>
			</div>
		</div>
Okhin's avatar
Okhin committed
42

Okhin's avatar
Okhin committed
43
44
45
46
47
48
49
50
51
		<nav class="navbar navbar-default">
			<div class="container-fluid">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav" aria-expanded="false">
						<span class="sr-only">{% trans "Toggle navgation" %}</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
52
					<a class="navbar-brand" href="/">Respect my net</a>
Okhin's avatar
Okhin committed
53
				</div>
Okhin's avatar
Okhin committed
54

Okhin's avatar
Okhin committed
55
56
57
58
59
60
				<div class="collapse navbar-collapse" id="main-nav">
					<ul class="nav navbar-nav">
						<li role="presentation" {% block active_tab_cases %}{% endblock %}><a href="{% url 'list_violations' %}">{% trans "Cases" %}</a></li>
						<li role="presentation" {% block active_tab_about %}{% endblock %}><a href="{%root_url%}/about">{% trans "What is Net Neutrality?" %}</a></li>
						<li role="presentation" {% block active_tab_start %}{% endblock %}><a href="{%root_url%}/start">{% trans "Start Monitoring" %}</a></li>
					</ul>
61
62
63
64
65
					<form action="/search/" method="get" class="navbar-form navbar-right">
						<div class="form-group">
							<input type="text" class="form-control" placeholder="Quick Search...">
						</div>
						{% buttons %}
Okhin's avatar
Okhin committed
66
						<button type="submit" class="btn btn-default">Search</button>
67
68
						{% endbuttons %}
					</form>
Okhin's avatar
Okhin committed
69
70
		</nav>
				</div>
71
			</div>
Okhin's avatar
Okhin committed
72

Okhin's avatar
Okhin committed
73
			{% if messages %}
74
			{% for message in messages %}
Okhin's avatar
Okhin committed
75
76
77
78
			<div class="alert alert-{{ message.tags }} alert-dismissible" role="alert">
				<button tye="button" class="close" data-dismiss="alert" aria-lable={% trans "Close" %}><span aria-hidden="true">&times;</span></button>
				{{message|safe}}
			</div>
79
			{% endfor %}
Okhin's avatar
Okhin committed
80
81
82
83
84
85
86
87
			{% endif %}
			<div id="wrapper">
				<div class="container-fluid">
					<div class="row">
						<div class="col-xs-12 col-md-8 col-md-offset-2">
							{% block content %}
							{% endblock %}
						</div>
88
					</div>
Okhin's avatar
Okhin committed
89
90
91
92
93
					<div class="row">
						<div class="col-xs-12 col-md-8 col-md-offset-2">
							{% block other_content %}
							{% endblock %}
						</div>
94
					</div>
Okhin's avatar
Okhin committed
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
128
129
130
131
132
133
134
					{% block footer %}
					<div class="row">
						<div id='footer' class="col-sm-10 col-sm-offset-1">
							<p style="padding:25px 5% 10px 5%;">{% trans "RespectMyNet.eu is an online platform enabling citizens to become the watchmen of the Internet by reporting Net Neutrality violations. Everyone is invited to report undue blocking or throttling of their Internet access, and help  name and shame operators' harmful practices." %}</p>
							<ul>
								<li class="logo-org">
									<a href="https://www.accessnow.org/"> <img alt="Access Now logo" src="/static/img/logos/accessnow.png" /><br> Access Now </a>
								</li>
								<li class="logo-org">
									<a href="https://www.laquadrature.net/"> <img alt="LQDN logo" src="/static/img/logos/la-quadrature-du-net.png" /><br> La Quadrature du Net </a>
								</li>
								<li class="logo-org">
									<a href="https://www.bof.nl/"> <img alt="BoF logo" src="/static/img/logos/Bits-of-Freedom.png" /><br> Bits of Freedom </a>
								</li>
								<li class="logo-org">
									<a href="https://digitalegesellschaft.de"> <img alt="Digitale Gesellschaft logo" src="/static/img/logos/digitalegesellschaft.png" /><br> Digitale Gesellschaft </a>
								</li>
								<li class="logo-org">
									<a href="https://edri.org/"> <img alt="EDRI logo" src="/static/img/logos/edri.png" /><br> European Digital Rights </a>
								</li>
								<li class="logo-org">
									<a href="https://netzfreiheit.org/"> <img alt="Netzfreiheit logo" src="/static/img/logos/netzfreiheit.png" /><br> Initiative für Netzfreiheit </a>
								</li>
								<li class="logo-org">
									<a href="https://itpol.dk/"> <img alt="IT-Politisk Forening logo" src="/static/img/logos/ITpollogo.png" /><br> IT-Politisk Forening </a>

								</li>
								<li class="logo-org">
									<a href="http://nurpa.be/"> <img alt="NURPA logo" src="/static/img/logos/nurpa.png" /><br> Nurpa </a>
								</li>
								<li class="logo-org">
									<a href="https://www.openrightsgroup.org/"> <img alt="ORG logo" src="/static/img/logos/org.png" /><br> Open Rights Group </a>
								</li>
								<li class="logo-org">
									<a href="https://xnet-x.net"> <img alt="Xnet logo" src="/static/img/logos/Xnet.png" /><br> Xnet </a>
								</li>
							</ul>
						</div>
					</div>
					{% endblock %}
135
				</div>
Okhin's avatar
Okhin committed
136
137
138
139
140
141
142
143
144
145
146
147
148
				<script type="text/javascript" src="/static/js/tinymce/tinyMCE/tinymce.min.js"></script>
				<script type="text/javascript" src="/static/js/jquery.min.js"></script>
				<script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>
				<script type="text/javascript" src="/static/js/jquery.tablesorter.js"> </script>
				<script type="text/javascript" src="/static/js/jquery.tablesorter.widgets.js"></script>
				<script type="text/javascript" src="/static/js/picnet.table.filter.min.js"></script>
				<script type="text/javascript" src='/static/js/d3.min.js'></script>
				<script type="text/javascript" src='/static/js/topojson.min.js'></script>
				<script type="text/javascript" src='/static/js/datamaps.js'></script>
				<script type="text/javascript" src="/static/js/nnmon.js"></script>
				<script type="text/javascript" src="/static/js/bootstrap.js"></script>
				{% block scripts %}
				{% endblock %}
149
	</body>
Okhin's avatar
Okhin committed
150
</html>