base.html 6.03 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>
Claude Paroz's avatar
Claude Paroz committed
9 10 11
  <link rel="icon" type="image/png" href="{{ STATIC_URL }}img/foot-16.png">
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/template.css">
  <link rel="stylesheet" href="{{ STATIC_URL }}css/overlays.css">
12
{% if LANGUAGE_BIDI %}
Claude Paroz's avatar
Claude Paroz committed
13
  <link rel="stylesheet" href="{{ STATIC_URL }}css/rtl.css">
14
{% endif %}
Claude Paroz's avatar
Claude Paroz committed
15 16 17 18
  <script type="text/javascript" src="{{ STATIC_URL }}js/main.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.min.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tools.min.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/overlayhelpers.js"></script>
19 20 21 22 23 24 25 26 27 28

  <script type="text/javascript">
    $(document).ready(function () {
      $('.show-overlay').prepOverlay({subtype:'ajax',
                                      filter: '#content > *',
                                      config: {expose:{color:'#ccc' }}
                                     });
    });
  </script>

29 30
  {% block extrahead %}
  {% endblock %}
31 32 33
</head>

<body>
34 35 36 37
    <!-- global gnome.org domain bar -->
    <div id="global_domain_bar">
        <div class="maxwidth">
            <div class="tab">
38
                <a class="root" href="http://www.gnome.org/">GNOME.org</a>
39 40
                {% if user.is_authenticated %}
                    <form action="{% url 'login' %}" method="post">
41
                        {% csrf_token %}
Claude Paroz's avatar
Claude Paroz committed
42
                        <a href="{{ user.get_absolute_url }}"><img src="{{ STATIC_URL }}img/nobody-16.png" alt="Person">&nbsp;{{ user.person }}</a> &bull;
43 44 45 46 47 48 49 50 51
                        <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
52

53
    <div id="gnome_header">
Gil Forcada's avatar
Gil Forcada committed
54

55
        <div class="maxwidth">
Gil Forcada's avatar
Gil Forcada committed
56

Claude Paroz's avatar
Claude Paroz committed
57
            <h1><a href="{% url 'home' %}" title="{% trans "Back to Damned Lies home page" %}"><img src="{{ STATIC_URL }}img/foot.png" alt="GNOME" /> {% trans "Damned Lies" %}</a></h1>
Gil Forcada's avatar
Gil Forcada committed
58

59 60 61 62 63 64 65
            <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
66

67 68
            <div class="clear"></div>
        </div>
Gil Forcada's avatar
Gil Forcada committed
69

70
    </div>
71 72

  <div class="body">
73
    <div id="content" class="maxwidth">
74 75
    {% if messages %}
        {% for message in messages %}
76
        <p class="errornote">{{ message|safe }}</p>
77 78 79
        {% endfor %}
    {% endif %}

80
    {% block content %}
Gil Forcada's avatar
Gil Forcada committed
81

82 83 84
    {% endblock %}
    </div>

85 86 87 88 89 90
  <div id="footer_art">
  </div>

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

91
  <div id="footer">
92
	<div class="maxwidth">
93
      <div class="links">
94 95
		<div>
		<ul id="menu-footer" class="menu">
96
			<li><a href="http://www.gnome.org">The GNOME Project</a>
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
			<ul class="sub-menu">
				<li><a href="http://www.gnome.org/about/">About Us</a></li>
				<li><a href="http://www.gnome.org/get-involved/">Get Involved</a></li>
				<li><a href="http://www.gnome.org/teams/">Teams</a></li>
				<li><a href="http://www.gnome.org/support-gnome/">Support GNOME</a></li>
				<li><a href="http://www.gnome.org/contact/">Contact Us</a></li>
				<li><a href="http://www.gnome.org/foundation/">The GNOME Foundation</a></li>
			</ul>
		</li>
		<li><a href="#">Resources</a>
			<ul class="sub-menu">
				<li><a href="http://developer.gnome.org">Developer Center</a></li>
				<li><a href="http://library.gnome.org">Documentation</a></li>
				<li><a href="http://live.gnome.org">Wiki</a></li>
				<li><a href="http://mail.gnome.org/mailman/listinfo">Mailing Lists</a></li>
				<li><a href="http://live.gnome.org/GnomeIrcChannels">IRC Channels</a></li>
				<li><a href="https://bugzilla.gnome.org/">Bug Tracker</a></li>
				<li><a href="http://git.gnome.org/browse/">Development Code</a></li>
				<li><a href="http://live.gnome.org/Jhbuild">Build Tool</a></li>
		</ul>
		</li>
118
		<li><a href="http://www.gnome.org/news/">News</a>
119 120 121 122 123 124 125 126 127 128 129 130 131 132
		<ul class="sub-menu">
			<li><a href="http://www.gnome.org/press/">Press Releases</a></li>
			<li><a href="http://www.gnome.org/start/stable">Latest Release</a></li>
			<li><a href="http://planet.gnome.org">Planet GNOME</a></li>
			<li><a href="http://gnomejournal.org">GNOME Journal</a></li>
			<li><a href="http://news.gnome.org">Development News</a></li>
			<li><a href="http://identi.ca/gnome">Identi.ca</a></li>
			<li><a href="http://twitter.com/gnome">Twitter</a></li>
		</ul>
		</li>
	</ul>
	</div>
	</div> <!-- end of div.links -->

133
      <div id="footnotes">
134
        {% trans "Copyright &copy; 2006-2012" %} <strong><a href="http://www.gnome.org/">{% trans "The GNOME Project" %}</a></strong>.
Gil Forcada's avatar
Gil Forcada committed
135 136 137
        <br />
        <a href="{% url 'about' %}">{% trans "About Damned Lies" %}</a>.
        {% trans "Optimized for standards." %}
138
        {% blocktrans with "<a href='http://www.canonical.com/'>Canonical</a>" as link %}Hosted by {{ link }}.{% endblocktrans %}
139
        {% blocktrans with "<a href='http://www.djangoproject.com/'>Django</a>" as link %}Powered by {{ link }}.{% endblocktrans %}
140 141
      </div>
    </div>
142 143 144 145 146
  </div>

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