Source

community-pinax / templates / site_base.html

Full commit
{% extends "base.html" %}

{% load i18n %}
{% load ifsetting_tag %}
{% load openid_tags %}

{% block extra_head_base %}
    <link rel="stylesheet" href="http://m.okfn.org/kforge/css/master.css" type="text/css" media="screen, print" title="Master stylesheet" charset="utf-8">
    <link rel="stylesheet" href="{{ STATIC_URL}}css/extra.css" type="text/css" media="screen, print" title="Master stylesheet" charset="utf-8">
    <link rel="stylesheet" href="{{ STATIC_URL }}css/site_tabs.css" />
    <link rel="stylesheet" href="{{ STATIC_URL }}tasks/css/tasks.css" />
    <link rel="stylesheet" href="{{ STATIC_URL }}pinax/css/groups.css" />
    {% block extra_head %}{% endblock %}
{% endblock %}

{% block login %}
    {% if user.is_authenticated %}
        {% openid_icon openid user %}<b>{{ user }}</b> | <a href="{% url acct_email %}">{% trans "Account" %}</a> | {% if user.is_staff %}<a href="/admin/">{% trans "Admin" %}</a> | {% endif %}<a href="/openid/logout/?next={% url acct_logout %}">{% trans "Logout" %}</a>
    {% else %}
        <a href="{% url acct_login %}">{% trans "Login" %}</a> {% ifsetting ACCOUNT_OPEN_SIGNUP %}{% trans "or" %} <a href="{% url acct_signup %}"><b>{% trans "Sign up" %}</b></a>{% endifsetting %}
    {% endif %}
{% endblock %}

{% block logo_link_image %}<a href="{% url home %}"><img src="http://m.okfn.org/images/logo/logo_fullname_medium.png" alt="OKFN"/></a>{% endblock %}

{% block right_tabs %}
    {% if user.is_authenticated %}
        <ul class="tabs">{% spaceless %}
            <li id="tab_profile"><a href="{% url profile_detail user %}">{% trans "Profile" %}</a></li>
            <li id="tab_groups"><a href="{% url group_list %}">{% trans "Groups" %}</a></li>
            <li id="tab_tribes"><a href="{% url tribe_list %}">{% trans "Tribes" %}</a></li>
            <li id="tab_projects"><a href="{% url project_list %}">{% trans "Project" %}</a></li>
            <li id="tab_notices"><a href="{% url notification_notices %}">{% trans "Notices" %}{% if notice_unseen_count %} ({{ notice_unseen_count }}){% endif %}</a></li>
        {% endspaceless %}</ul>
    {% endif %}
{% endblock %}

{% block footer %}
  <p>
    <a title="Valid HTML" href="http://validator.w3.org/check/referer">Valid HTML</a>
    - <a title="Valid CSS 1/2" href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a>
    - <a href="/contact/">Contact Us</a>
    - <a href="/privacy-policy/">Privacy Policy</a>
  </p>
  <p>
  (c) Open Knowledge Foundation
  - Available under an <a href="/ip-policy/">open license</a>
  - <a href="http://www.opendefinition.org/"><img style="border: none; margin-bottom: -4px;" src="http://m.okfn.org/images/ok_buttons/ok_90x15_blue.png" alt="This Material is Open"></a>
  </p>
{% endblock %}

{% block extra_body_base %}
    <script src="{{ STATIC_URL }}tasks/js/tasks.js" type="text/javascript"></script>
    {% block extra_body %}{% endblock %}
{% endblock %}