~ris/loco-team-portal/fix-552762

« back to all changes in this revision

Viewing changes to loco_directory/templates/base.html

  • Committer: Tarmac
  • Author(s): Chris Johnston
  • Date: 2012-06-17 14:32:03 UTC
  • mfrom: (532.1.3 theme)
  • Revision ID: tarmac@nigelb.me-20120617143203-15zle8vuew6d001d
[r=daker] Updates LTP to use the new branding guidelines

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "ubuntu_website_base.html" %}
 
1
{% extends "website_base.html" %}
2
2
{% load i18n %}
3
3
 
4
4
{% block title %}{% block page_name %}{% trans "Home" %}{%endblock %} | {% trans "Ubuntu LoCo Team Portal" %}{% endblock %}
5
5
 
6
6
{% block logo_text %}{% trans "LoCo Team Portal" %}{% endblock %}
7
7
 
 
8
{% block extrastyles %}
 
9
    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}/css/styles.css" />
 
10
{% endblock %}
 
11
 
8
12
{% block extrahead %}
9
 
    <link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}css/newstyle.css" />
10
 
    <script type="text/javascript" src="{{MEDIA_URL}}jquery/jquery.js"></script>
11
13
    <script type="text/javascript">
12
14
      var _gaq = _gaq || [];
13
15
      _gaq.push(['_setAccount', 'UA-26763972-1']);
39
41
{% endblock %}
40
42
 
41
43
{% block main_nav_links %}
42
 
    <a class="main-nav-item {% ifequal url_base 'teams' %}current{% endifequal %}" title="{% trans "Show All Teams" %}" href="{% url team-list %}">{% trans "Teams" %}</a>
43
 
    <a class="main-nav-item {% ifequal url_base 'events' %}current{% endifequal %}" title="{% trans "Show All Events" %}" href="{% url event-list %}">{% trans "Events" %}</a>
44
 
    <a class="main-nav-item {% ifequal url_base 'meetings' %}current{% endifequal %}" title="{% trans "Show All Meetings" %}" href="{% url meeting-list %}">{% trans "Meetings" %}</a>
45
 
    <a class="main-nav-item {% ifequal url_base 'loco-council' %}current{% endifequal %}" title="{% trans "LoCo Council" %}" href="{% url loco_council %}">{% trans "LoCo Council" %}</a>
46
 
    <a class="main-nav-item {% ifequal url_base 'about-loco' %}current{% endifequal %}" title="{% trans "About LoCo Teams" %}" href="{% url about_loco %}">{% trans "About LoCos" %}</a>
47
 
    <a class="main-nav-item {% ifequal url_base 'irc' %}current{% endifequal %}" title="{% trans "IRC Chat" %}" href="{% url irc_chat %}">{% trans "IRC Chat" %}</a>
 
44
<ul class="clearfix">
 
45
    <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item {% ifequal url_base 'teams' %}active{% endifequal %}" title="{% trans "Show All Teams" %}" href="{% url team-list %}">{% trans "Teams" %}</a></li>
 
46
    <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item {% ifequal url_base 'events' %}active{% endifequal %}" title="{% trans "Show All Events" %}" href="{% url event-list %}">{% trans "Events" %}</a></li>
 
47
    <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item {% ifequal url_base 'meetings' %}active{% endifequal %}" title="{% trans "Show All Meetings" %}" href="{% url meeting-list %}">{% trans "Meetings" %}</a></li>
 
48
    <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item {% ifequal url_base 'loco-council' %}active{% endifequal %}" title="{% trans "LoCo Council" %}" href="{% url loco_council %}">{% trans "LoCo Council" %}</a></li>
 
49
    <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item {% ifequal url_base 'about-loco' %}active{% endifequal %}" title="{% trans "About LoCo Teams" %}" href="{% url about_loco %}">{% trans "About LoCos" %}</a></li>
 
50
    <li{% if item.current %} class='active'{% endif %} id="main-nav"><a class="main-nav-item {% ifequal url_base 'irc' %}active{% endifequal %}" title="{% trans "IRC Chat" %}" href="{% url irc_chat %}">{% trans "IRC Chat" %}</a></li>
 
51
</ul>
48
52
{% endblock %}
49
53
 
50
54
{% block sub_nav_links %}
52
56
 
53
57
{% block search_box %}
54
58
<form id="site_search_form" action="{% url common.views.site_search %}" method="get">
55
 
                {{ search_form.q }}
56
 
                <input type="image" src="/media/img/search.png" title="{% trans "Search" %}" alt="{% trans "Search" %}"  />
 
59
        {{ search_form.q }}
 
60
        <input type="image" src="/media/img/search.png" title="{% trans "Search" %}" alt="{% trans "Search" %}" />
57
61
</form>
58
62
{% endblock %}
59
63
 
60
64
{% block messages %}
61
 
        {% if messages %}
62
 
          {% for message in messages %}
63
 
            <div class = 'message' ><div class = 'content-shim' >{{ message }}</div></div>
64
 
          {% endfor %}
65
 
        {% endif %}
 
65
    {% if messages %}
 
66
      {% for message in messages %}
 
67
        <div class = 'message' ><div class = 'content-shim' >{{ message }}</div></div>
 
68
      {% endfor %}
 
69
    {% endif %}
66
70
{% endblock %}
67
71
 
68
72
{% block content %}
73
77
 
74
78
{% block footer %}
75
79
<div style="height: 40px;">
76
 
        <div class="lang_switcher">
77
 
                <form name="lang-switcher" style="text-align:right;" action="/language/" method="get">
78
 
                <input name="next" type="hidden" value="{{ request.path }}" />
79
 
                    <select name="lang" onchange="document.forms['lang-switcher'].submit()">
80
 
                        {% for lang in LANGUAGES %}
81
 
                            <option value="{{ lang.0 }}"{% ifequal LANGUAGE_CODE lang.0 %} selected="selected"{% endifequal %}>{{ lang.1 }}</option>
82
 
                        {% endfor %}
83
 
                    </select>
84
 
                </form>
85
 
        </div>
 
80
    <div class="lang_switcher">
 
81
        <form name="lang-switcher" style="text-align:right;" action="/language/" method="get">
 
82
        <input name="next" type="hidden" value="{{ request.path }}" />
 
83
            <select name="lang" onchange="document.forms['lang-switcher'].submit()">
 
84
            {% for lang in LANGUAGES %}
 
85
                <option value="{{ lang.0 }}"{% ifequal LANGUAGE_CODE lang.0 %} selected="selected"{% endifequal %}>{{ lang.1 }}</option>
 
86
            {% endfor %}
 
87
            </select>
 
88
        </form>
 
89
    </div>
86
90
</div>
87
91
<div class="copyright">
88
 
    &copy; 2008-{% now "Y" %} Canonical Ltd., Ubuntu Community. Ubuntu is a registered trademark of Canonical Ltd.<br />
89
 
    <a href="/about">{% trans "About the LoCo Team Portal Project" %}</a><br />
90
 
    {% trans 'Problems with LoCo Team Portal?' %} <a href="https://bugs.launchpad.net/loco-team-portal/+filebug">{% trans 'File a Bug' %}</a><br />
91
 
    {% trans "LoCo Team Portal" %} {{ loco_version }}
 
92
    <p>&copy; 2008-{% now "Y" %} Canonical Ltd., Ubuntu Community. Ubuntu is a registered trademark of Canonical Ltd.</p>
 
93
    <p><a href="/about">{% trans "About the LoCo Team Portal Project" %}</a></p>
 
94
    <p>{% trans 'Problems with LoCo Team Portal?' %} <a href="https://bugs.launchpad.net/loco-team-portal/+filebug">{% trans 'File a Bug' %}</a></p>
 
95
    <p>{% trans "LoCo Team Portal" %} {{ loco_version }}</p>
92
96
</div>
93
97
{% endblock %}
94
98