aboutsummaryrefslogtreecommitdiff
blob: f9fff9733a0cf7082a3971de7e5890ab0b53245d (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

{% load url from future %}
{% load timedelta %}

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>{% block title %}euscan{% endblock %}</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    {% block meta %}
    <link rel="alternate" type="application/atom+xml" title="Global log" href="{% url "global_feed" %}" />
    {% endblock %}
    {% block css %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.min.css" media="screen" title="Normal" />
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/style.css" media="screen" title="Normal" />
    {% endblock %}
    {% block javascript %}
    {% endblock %}
  </head>
  <body>
    <div id="header">
      <a href="http://www.gentoo.org">
        <img id="logo" src="{{ STATIC_URL }}img/gentoo_org.png" alt="gentoo" />
      </a>
      {% block header %}<h1>Ebuild Upstream Scanner (euscan)</h1>{% endblock %}
    </div>
    <div class="row-fluid">
      <div class="span10">
        <div class="row-fluid">
          <div class="span1"></div>
          <div id="content" class="rounded span11">
            {% block content %}{% endblock %}
          </div>
        </div>
      </div>
      <div class="span2">
        <div class="row-fluid">
          <div id="menus" class="span11">
            {% block menus %}
              <div class="menu rounded">
                <ul>
                  {% block menu %}
                    <li><a href="{% url "index" %}">Home</a></li>
                    <li><a href="{% url "categories" %}">Categories</a></li>
                    <li><a href="{% url "herds" %}">Herds</a></li>
                    <li><a href="{% url "maintainers" %}">Maintainers</a></li>
                    <li><a href="{% url "overlays" %}">Overlays</a></li>
                    <li><a href="{% url "world" %}">Scan World</a></li>

                    <li>---</li>

                    {% if user.is_authenticated %}
                      <li><a href="{% url "accounts_index" %}">{{ user }}'s profile</a></li>
                      <ul class="submenu">
                        <li><a href="{% url "accounts_categories" %}">Categories</a></li>
                        <li><a href="{% url "accounts_herds" %}">Herds</a></li>
                        <li><a href="{% url "accounts_maintainers" %}">Maintainers</a></li>
                        <li><a href="{% url "accounts_packages" %}">Packages</a></li>
                        <li><a href="{% url "accounts_overlays" %}">Overlays</a></li>
                      </ul>
                      <li><a href="{% url "django.contrib.auth.views.logout" %}">Logout</a></li>
                    {% else %}
                      <li><a href="{% url "django.contrib.auth.views.login" %}?next={% url "accounts_index" %}">Login</a></li>
                      <li><a href="{% url "registration.views.register" %}">Register</a></li>
                    {% endif %}

                    <li>---</li>

                    {% block menu_feed %}
                      <li>
                        <img src="{{ STATIC_URL }}img/feed.png" alt="feed" />
                        <a title="Global Feed" href="{% url "global_feed" %}">Global Feed</a>
                      </li>

                      {% if user.is_authenticated %}
                        <li>
                          <img src="{{ STATIC_URL }}/img/feed.png" alt="feed" />
                          <a title="{{ user }} Feed" href="{% url "user_feed" %}">
                            {{ user }}'s Feed
                          </a>
                        </li>
                      {% endif %}
                    {% endblock %}
                    <li>---</li>
                    <li><a href="{% url "api" %}">API</a></li>
                    <li><a href="{% url "feeds" %}">Feeds</a></li>
                    <li><a href="{% url "config" %}">Server config</a></li>
                    <li><a href="{% url "statistics" %}">Statistics</a></li>
                    <li><a href="{% url "about" %}">About</a></li>
                  {% endblock %}
                </ul>
              </div>
            {% endblock %}
          </div>
          <div class="span1"></div>
        </div>
      </div>
    </div>
    <div id="footer">
      <p>
      {% block last_scan %}
        {% if last_scan %}
          Last scan: {{ last_scan }} ({{ last_scan|timedelta }})
        {% endif %}
      {% endblock %}
      </p>

      <p>
        Questions, Comments, Corrections ?
        Email: corentin.chary at gmail.com<br />
        Copyright (C) 2011 <strong>Corentin Chary</strong><br />
        Original Gentoo artwork and logos copyright (C) Gentoo Foundation.<br />
        Design inspired by (stolen from) gentoo.org and bugs.gentoo.org.<br />
        <em>This site is not an official Gentoo website.</em>
      </p>
    </div>
  </body>
</html>