Commit 6e0bd7df authored by okhin's avatar okhin 🚴

Simplyfying the nav bar

parent 589b9859
{% extends "base.html" %}
{% load bt %}
{% load i18n %}
{% block active_tab_contact %}id="current"{% endblock %}
{% block content %}
<div id='global'>
<p>{% 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>
<p>{% trans "This platform is a joint project by La Quadrature du Net, Bits of Freedom and individual contributors. It was launched on September 22nd, 2011." %}</p>
<p>{% trans "Organisations will submit reports to national and EU regulatory authorities if appropriate." %}</p>
<p>{% trans "For enquiries about the project, please contact:" %}</p>
<ul class="with-disc">
<li>{% trans "France" %}: <a href="http://www.laquadrature.net/">La Quadrature du Net</a> &ndash; contact[a]laquadrature.net</li>
<li>{% trans "Netherlands" %}: <a href="https://www.bof.nl/">Bits of Freedom</a> &ndash; info[a]bof.nl</li>
</ul>
<h3>{% trans "Initiators" %}</h3>
<ul>
<li class="logo-org"><img alt="BoF logo" src="/static/img/bof.png" /><a href="https://www.bof.nl">Bits of Freedom</a></li>
<li class="logo-org"><img alt="LQDN logo" src="/static/img/lqdn.png" /><a href="https://www.laquadrature.net/">La Quadrature du Net</a></li>
<li class="logo-org"><img alt="ORG logo" src="/static/img/org.png" /><a href="https://www.openrightsgroup.org/">Open Rights Group</a></li>
<li class="logo-org"><img alt="NURPA logo" src="/static/img/nurpa.png" width="80" style="text-align: center; background:#446688"/><br /><a href="http://nurpa.be"><small>Net Users' Rights Protection Association</small></a></li>
<li class="logo-org"><img alt="XNet logo" src="/static/img/xnet.png" /><a href="https://xnet-x.net/">X&nbsp;Net</a></li>
<li class="logo-org"><img alt="EDRI logo" src="/static/img/edri.png" /><a href="https://edri.org/">X&nbsp;Net</a></li>
</ul>
</div>
{% endblock %}
{% load i18n %}{% load bt %}<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Strict/EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{LANGUAGE_CODE}}" xml:lang="{{LANGUAGE_CODE}}">
{% load i18n %}
{% load bt %}
<html>
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
......@@ -23,27 +23,37 @@
<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 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>
<ul id="nav">
<li><a {% block active_tab_home %}{% endblock %} href="{% url 'homepage' %}">{% trans "Home" %}</a></li>
<li><a {% block active_tab_cases %}{% endblock %} href="{% url 'list_violations' %}">{% trans "Cases" %}</a></li>
<li><a {% block active_tab_about %}{% endblock %} href="{%root_url%}/about">{% trans "What is Net Neutrality?" %}</a></li>
<li><a {% block active_tab_start %}{% endblock %} href="{%root_url%}/start">{% trans "Start Monitoring" %}</a></li>
<li><a {% block active_tab_search %}{% endblock %} href="{%root_url%}/search">{% trans "Search" %}</a></li>
<li><a {% block active_tab_contact %}{% endblock %} href="{%root_url%}/contact">{% trans "Contact" %}</a></li>
</ul></div>
<li>
<form action="/search/" method="get">
{% csrf_token %}
<span>
<label for="quick_q" class="quick"></label>
<input name="q" id="quick_q" class="quick"></input></form>
<input type="submit" value="Search"></input>
</span>
</form>
</li>
</ul>
</div>
</div>
</div>
......@@ -53,6 +63,15 @@
{% endblock %}
<div id='footer'>
{% block footer %}
<p>{% 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"><img alt="BoF logo" src="/static/img/bof.png" /><a href="https://www.bof.nl">Bits of Freedom</a></li>
<li class="logo-org"><img alt="LQDN logo" src="/static/img/lqdn.png" /><a href="https://www.laquadrature.net/">La Quadrature du Net</a></li>
<li class="logo-org"><img alt="ORG logo" src="/static/img/org.png" /><a href="https://www.openrightsgroup.org/">Open Rights Group</a></li>
<li class="logo-org"><img alt="NURPA logo" src="/static/img/nurpa.png" width="80" style="text-align: center; background:#446688"/><br /><a href="http://nurpa.be"><small>Net Users' Rights Protection Association</small></a></li>
<li class="logo-org"><img alt="XNet logo" src="/static/img/xnet.png" /><a href="https://xnet-x.net/">X&nbsp;Net</a></li>
<li class="logo-org"><img alt="EDRI logo" src="/static/img/edri.png" /><a href="https://edri.org/">X&nbsp;Net</a></li>
</ul>
{% endblock %}
</div>
{% block scripts %}
......
......@@ -72,8 +72,6 @@ urlpatterns = patterns('',
TemplateView.as_view(template_name='nn.html')),
url(r'^start/$',
TemplateView.as_view(template_name='start.html')),
url(r'^contact/$',
TemplateView.as_view(template_name='about.html')),
url(r'^captcha/',
include('captcha.urls')),
url(r'^admin/',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment