base.html 7.85 KB
Newer Older
1
{% load i18n people %}
2
{% load stats_extras %}
3 4
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
5
<head>
6
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
  <title>{% block title %}page title{% endblock %}</title>
Claude Paroz's avatar
Claude Paroz committed
9
  <link rel="icon" type="image/png" href="{{ STATIC_URL }}img/foot-16.png">
10
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.min.css">
Claude Paroz's avatar
Claude Paroz committed
11
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/template.css">
12
  <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/responsive.css">
13
{% if LANGUAGE_BIDI %}
Claude Paroz's avatar
Claude Paroz committed
14
  <link rel="stylesheet" href="{{ STATIC_URL }}css/rtl.css">
15
{% endif %}
Claude Paroz's avatar
Claude Paroz committed
16
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.min.js"></script>
17 18
  <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.cookie.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/main.js"></script>
19 20
  <script type="text/javascript" src="{{ STATIC_URL }}js/modal.js"></script>
  <script type="text/javascript" src="{{ STATIC_URL }}js/login.js"></script>
21 22 23

  <script type="text/javascript">
    $(document).ready(function () {
24 25 26
      $(document).on('hidden.bs.modal', function (e) {
        $(e.target).removeData('bs.modal');
      });
27 28 29
    });
  </script>

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

33
<body class="gnome-body">
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
<header class="gnome-header">
    <div class="navbar navbar-fixed-top navbar-default affix-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-wrapper" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar top-bar"></span>
                    <span class="icon-bar middle-bar"></span>
                    <span class="icon-bar bottom-bar"></span>
                </button>
                <a class="gnome-navbar-brand" title="{% trans "Back to Damned Lies home page" %}" href="/"><img src="{{ STATIC_URL }}img/gnome-l10n.svg" alt="GNOME - Damned Lies" /></a>
                <ul class="nav navbar-nav icons visible-xs">
                    <li class="dropdown">
                    {% if user.is_authenticated %}
                        <a data-target="#userDropdownMenu" class="dropdown-toggle avatar" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ user.person|people_image }}</a>
                    {% else %}
                        <a href="#userDropdownMenu" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><img src="{{ STATIC_URL }}img/avatar-default.svg" alt="GNOME - Damned Lies" /></a>
                    {% endif %}
                    </li>
                </ul>
            </div>
            <ul class="nav navbar-nav navbar-right no-padding">
                <li id="userDropdownMenu" class="dropdown">
57
                {% if user.is_authenticated %}
58
                    <a href="{% url 'person_detail_username' user.username %}" class="dropdown-toggle hidden-xs avatar" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ user.person|people_image }}</a>
59
                {% else %}
60
                    <a href="{% url 'login' %}" class="dropdown-toggle hidden-xs" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{% trans "Log in" %} <span class="caret"></span></a>
61
                {% endif %}
62 63 64 65 66 67 68 69 70 71 72 73 74 75
                    <ul class="dropdown-menu login_popup_form">
                        <li>
                            {% include "login/login_usermenu.html" %}
                        </li>
                    </ul>
                </li>
            </ul>
            <div id="navbar-wrapper" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <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>
76
            </div>
77
        </div>
78
    </div>
79
</header>
Gil Forcada's avatar
Gil Forcada committed
80

81
<div class="clearfix"></div>
82

83
<div id="content" class="container gnome-content">
84 85
    {% if messages %}
        {% for message in messages %}
86
        <p class="errornote">{{ message|safe }}</p>
87 88 89
        {% endfor %}
    {% endif %}

90 91
    {% block content-title %}{% endblock %}
    {% block content %}{% endblock %}
92
</div>
93

94 95
<div id="footer">
    <div class="links container">
96 97 98 99 100 101 102
        <div>
        <ul id="menu-footer" class="menu">
            <li><a href="https://www.gnome.org">{% trans "The GNOME Project" %}</a>
            <ul class="sub-menu">
                <li><a href="https://www.gnome.org/about/">{% trans "About Us" %}</a></li>
                <li><a href="https://www.gnome.org/get-involved/">{% trans "Get Involved" %}</a></li>
                <li><a href="https://www.gnome.org/support-gnome/">{% trans "Support GNOME" %}</a></li>
Tom Tryfonidis's avatar
Tom Tryfonidis committed
103
                <li><a href="https://www.gnome.org/merchandise/">{% trans "Merchandise" %}</a></li>
104 105 106 107 108 109 110 111 112 113 114 115
                <li><a href="https://www.gnome.org/contact/">{% trans "Contact Us" %}</a></li>
                <li><a href="https://www.gnome.org/foundation/">{% trans "The GNOME Foundation" %}</a></li>
            </ul>
        </li>
        <li><a href="#">{% trans "Resources" %}</a>
            <ul class="sub-menu">
                <li><a href="https://developer.gnome.org">{% trans "Developer Center" %}</a></li>
                <li><a href="https://help.gnome.org">{% trans "Documentation" %}</a></li>
                <li><a href="https://wiki.gnome.org/">{% trans "Wiki" %}</a></li>
                <li><a href="https://mail.gnome.org/mailman/listinfo">{% trans "Mailing Lists" %}</a></li>
                <li><a href="https://wiki.gnome.org/GnomeIrcChannels">{% trans "IRC Channels" %}</a></li>
                <li><a href="https://bugzilla.gnome.org/">{% trans "Bug Tracker" %}</a></li>
116
                <li><a href="https://gitlab.gnome.org/GNOME/">{% trans "Development Code" %}</a></li>
117 118 119 120 121 122 123 124 125 126 127 128
        </ul>
        </li>
        <li><a href="https://www.gnome.org/news/">{% trans "News" %}</a>
        <ul class="sub-menu">
            <li><a href="https://www.gnome.org/press/">{% trans "Press Releases" %}</a></li>
            <li><a href="https://www.gnome.org/start/stable">{% trans "Latest Release" %}</a></li>
            <li><a href="https://planet.gnome.org">{% trans "Planet GNOME" %}</a></li>
        </ul>
        </li>
    </ul>
    </div>
    </div> <!-- end of div.links -->
129

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

<div class="modal fade" id="modal-container" tabindex="-1" role="dialog" aria-labelledby="DamnedliesModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
        </div>
    </div>
</div>

147
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
148 149
</body>
</html>