base.html 2.31 KB
Newer Older
stef's avatar
stef committed
1
{% load i18n %}{% load bt %}<?xml version="1.0" encoding="utf-8"?>
stef's avatar
stef committed
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
stef's avatar
stef committed
3
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
stef's avatar
stef committed
4
5
6
7
8
9
10
<head>
    <meta http-equiv="content-type" content="text/html; 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 %}[!] NNMon {% endblock %}</title>
    <meta name="robots" content="noarchive,noindex,nofollow">
stef's avatar
stef committed
11
12
    <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/atom/">
    <link rel="alternate" type="application/rss+xml" title="RSS feed" href="/rss/">
stef's avatar
stef committed
13
14
15
16
17
18
19
    {% block rss %}
    {% endblock %}
    <link rel="stylesheet" type="text/css" media="all" href="{% media_url %}/css/style.css" />
    {% block styles %}
    {% endblock %}
</head>
<body>
stef's avatar
stef committed
20
21
22
<div id="wrapper">
<div id="header-container">
<div id="header">
stef's avatar
stef committed
23
   <h1><a href="/">NNMon <span>Net Neutrality Monitor</span></a></h1>
stef's avatar
stef committed
24
25

  <div id="user"><p>
stef's avatar
stef committed
26
	{% if user.is_authenticated %}
stef's avatar
stef committed
27
		{{ user.username }},
stef's avatar
stef committed
28
      <a href="{%root_url%}/accounts/logout">{% trans "Logout" %}</a>
stef's avatar
stef committed
29
      <span>or</span>
stef's avatar
stef committed
30
      <a href="{%root_url%}/admin/">{% trans "Admin" %}</a>
stef's avatar
stef committed
31
32
33
34
35
36
37
	{% else %}
      <a href="#" id="login">{% trans "Login" %}</a>
   {% endif %}
  </p></div>

  <ul id="nav">
     <li><a {% if request.path == '/' %}id="current" {% endif %}href="{%root_url%}/">{% trans "Home" %}</a></li>
38
     <li><a {% if request.path == '/list/' or '/view' in request.path %}id="current" {% endif %}href="{%root_url%}/list">{% trans "Violations" %}</a></li>
stef's avatar
stef committed
39
40
41
42
43
44
     <li><a {% if request.path == '/about/' %}id="current" {% endif %}href="{%root_url%}/about">{% trans "What's Net Neutrality" %}</a></li>
     <li><a {% if request.path == '/start/' %}id="current" {% endif %}href="{%root_url%}/start">{% trans "Start Monitoring" %}</a></li>
     <li><a {% if request.path == '/contact/' %}id="current" {% endif %}href="{%root_url%}/contact">{% trans "Contact" %}</a></li>
  </ul></div>
</div>
</div>
stef's avatar
stef committed
45
46
47
48
49

{% block content %}
{% endblock %}
{% block other_content %}
{% endblock %}
50
51
52
53
<div id='footer'>
{% block footer %}
{% endblock %}
</div>
stef's avatar
stef committed
54
55
{% block scripts %}
{% endblock %}
stef's avatar
stef committed
56
57
</body>
</html>