base.html 2.63 KB
Newer Older
Okhin's avatar
Okhin committed
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
{% 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}}">
<head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
    <meta http-equiv="content-language" content="en" />
    <meta name="description" content="The Internet bugtracker" />
    <meta name="keywords" content="internet network neutrality" />
    <title>{% block title %}[!] Respect My Net {% endblock %}</title>
    <meta name="robots" content="archive,index,follow" />
    <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 %}
    <link rel="stylesheet" type="text/css" media="all" href="{% media_url %}/css/style.css" />
    {% block styles %}
    {% endblock %}
</head>
<body>
<div id="wrapper">
<div id="header-container">
<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>

  <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>
Okhin's avatar
Okhin committed
44
     <li><a {% block active_tab_search %}{% endblock %} href="{%root_url%}/search">{% trans "Search" %}</a></li>
Okhin's avatar
Okhin committed
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
     <li><a {% block active_tab_contact %}{% endblock %} href="{%root_url%}/contact">{% trans "Contact" %}</a></li>
  </ul></div>
</div>
</div>

{% block content %}
{% endblock %}
{% block other_content %}
{% endblock %}
<div id='footer'>
{% block footer %}
{% endblock %}
</div>
{% block scripts %}
{% endblock %}
</body>
</html>