base.html 3.65 KB
Newer Older
1
{% load i18n %}
2
{% load stats_extras %}
Claude Paroz's avatar
Claude Paroz committed
3
{% load url from future %}
4 5
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
6
<head>
7
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
  <title>{% block title %}page title{% endblock %}</title>
9
  <link rel="icon" type="image/png" href="/media/img/foot-16.png">
10 11
  <!--<link rel="stylesheet" type="text/css" href="/media/css/main.css">-->
  <link rel="stylesheet" type="text/css" href="/media/newcss/template.css">
12
{% if LANGUAGE_BIDI %}
13
  <link rel="stylesheet" href="/media/css/rtl.css">
14
{% endif %}
15
  <script type="text/javascript" src="{{ MEDIA_URL }}js/main.js"></script>
16
  <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.min.js"></script>
17 18
  {% block extrahead %}
  {% endblock %}
19 20 21
</head>

<body>
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    <!-- global gnome.org domain bar -->
    <div id="global_domain_bar">
        <div class="maxwidth">
            <div class="tab">
                <a class="root" href="/">GNOME.org</a>
                {% if user.is_authenticated %}
                    <form action="{% url 'login' %}" method="post">
                        <a href="{{ user.get_absolute_url }}"><img src="{{ MEDIA_URL }}img/nobody-16.png" alt="Person">&nbsp;{{ user.person }}</a> &bull;
                        <input type="hidden" name="logout" value="1">
                        <input type="submit" value="{% trans 'Log out' %}">
                    </form>
                {% else %}
                    <a href="{% url 'login' %}">{% trans "Log in" %}</a>
                {% endif %}
            </div>
        </div>
    </div>
Gil Forcada's avatar
Gil Forcada committed
39

40
    <div id="gnome_header">
Gil Forcada's avatar
Gil Forcada committed
41

42
        <div class="maxwidth">
Gil Forcada's avatar
Gil Forcada committed
43

44
            <h1><a href="{% url 'home' %}" title="{% trans "Back to Damned Lies home page" %}"><img src="{{ MEDIA_URL }}newimg/newfoot.png" alt="GNOME" /> {% trans "Damned Lies" %}</a></h1>
Gil Forcada's avatar
Gil Forcada committed
45

46 47 48 49 50 51 52
            <ul id="globalnav">
                <li{% if pageSection == "home" %} class="active"{% endif %}><a href="{% url 'home' %}" title="{% trans "Back to Damned Lies home page" %}"><span>{% trans "Home" %}</span></a></li>
                <li{% if pageSection == "teams" %} class="active"{% endif %}><a href="{% url 'teams' %}"><span>{% trans "Teams" %}</span></a></li>
                <li{% if pageSection == "languages" %} class="active"{% endif %}><a href="{% url 'languages' %}"><span>{% trans "Languages" %}</span></a></li>
                <li{% if pageSection == "releases" %} class="active"{% endif %}><a href="{% url 'releases' %}"><span>{% trans "Release sets" %}</span></a></li>
                <li{% if pageSection == "module" %} class="active"{% endif %}><a href="{% url 'modules' %}"><span>{% trans "Modules" %}</span></a></li>
            </ul>
Gil Forcada's avatar
Gil Forcada committed
53

54 55
            <div class="clear"></div>
        </div>
Gil Forcada's avatar
Gil Forcada committed
56

57
    </div>
58 59

  <div class="body">
60
    <div id="content" class="maxwidth">
61 62
    {% if messages %}
        {% for message in messages %}
63
        <p class="errornote">{{ message|safe }}</p>
64 65 66
        {% endfor %}
    {% endif %}

67
    {% block content %}
Gil Forcada's avatar
Gil Forcada committed
68

69 70 71
    {% endblock %}
    </div>

72 73 74 75 76 77
  <div id="footer_art">
  </div>

  <div id="footer_grass">
  </div>

78
  <div id="footer">
79 80 81 82 83
    <div class="maxwidth">
      <div class="links">
      </div>
      <div id="footnotes">
        {% trans "Copyright &copy; 2006-2012" %} <strong><a href="http://www.gnome.org/">{% trans "The GNOME Project" %}</strong></a>.
Gil Forcada's avatar
Gil Forcada committed
84 85 86
        <br />
        <a href="{% url 'about' %}">{% trans "About Damned Lies" %}</a>.
        {% trans "Optimized for standards." %}
87
        {% blocktrans with "<a href='http://www.canonical.com/'>Canonical</a>" as link %}Hosted by {{ link }}.{% endblocktrans %}
Gil Forcada's avatar
Gil Forcada committed
88
        {% trans "Powered by Django." %}
89 90
      </div>
    </div>
91 92 93 94 95
  </div>

</div> <!-- end of div.body -->
</body>
</html>