# -*- coding: utf-8 -*-
# Copyright (C) 2007 Samalyse SARL
+# Copyright (C) 2008-2011 Parisson SARL
# This software is a computer program whose purpose is to backup, analyse,
# transcode and stream any audio content with its metadata over a web frontend.
# knowledge of the CeCILL license and that you accept its terms.
#
# Author: Olivier Guilyardi <olivier@samalyse.com>
+# Guillaume Pellerin <yomguy@parisson.com>
from telemeta.models.media import *
from telemeta.models.location import *
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
-<head>
{% load i18n %}
{% load telemeta_utils %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
+<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
+<head>
<title>{%block head_title %}{% organization %} - Telemeta{% endblock %}</title>
{% block stylesheets %}
<div id="auth_info">
{% if user.is_authenticated %}
-<img src="images/user.png" style="vertical-align:middle" />
+<img src="images/user.png" alt="user" style="vertical-align:middle" />
{% trans "Welcome" %},
{% if user.first_name and user.last_name %}
{{ user.first_name }} {{ user.last_name }}.
<a href="{% url telemeta-profile-detail user.username %}">{% trans "Account" %}</a> |
<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
<a href="{% url telemeta-logout %}">{% trans "Sign out" %}
-<img src="images/logout.png" style="vertical-align:middle" /></a>
+<img src="images/logout.png" alt="logout" style="vertical-align:middle" /></a>
{% else %}
<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
<a href="{% url telemeta-login %}?next={{ request.path|urlencode }}">{% trans "Sign in" %}</a>
</div>
<div id="quick_search">
-<form action="{% url telemeta-search %}" id="_quickSearchForm" method="GET">
+<form action="{% url telemeta-search %}" id="_quickSearchForm" method="get">
<input type="text" id="quick_search_pattern" name="pattern" />
<a href="#" class="component button"
onclick="document.getElementById('_quickSearchForm').submit(); return false;">{% trans "Search" %}</a>
<li class="darkblue"><a href="/">{% trans "Home" %}</a></li>
<li class="blue"><a href="{% url telemeta-collections %}">{% trans "Collections" %}</a></li>
<li class="green"><a href="{% url telemeta-items %}">{% trans "Items" %}</a></li>
- <li class="yellow" {% if not user.is_authenticated %} class="last" {% endif %}><a href="{% url telemeta-geo-continents %}">{% trans "Geo Navigator" %}</a></li>
+ <li class="yellow"><a href="{% url telemeta-geo-continents %}">{% trans "Geo Navigator" %}</a></li>
<li class="orange"><a href="{% url telemeta-search-criteria %}">{% trans "Advanced search" %}</a></li>
{% if user.is_staff %}
- <li class="red" class="last"><a href="{% url telemeta-admin %}">{% trans "Admin" %}</a></li>
+ <li class="red"><a href="{% url telemeta-admin %}">{% trans "Admin" %}</a></li>
{% endif %}
</ul>
{% endblock %}
{% block modules %}
<div id="module" class="module">
- <h3><img src="{% url telemeta-images "module_world.png" %}" style="vertical-align:middle" />
+ <h3><img src="{% url telemeta-images "module_world.png" %}" alt="world" style="vertical-align:middle" />
{% trans "Geo Navigator" %}</h3>
<a class="image-link" href="{% url telemeta-geo-continents %}">
<img class="map-thumbnail" src="{% url telemeta-images "map_thumbnail.png" %}" alt="{% trans "Open the geographic navigator" %}" /></a>
</div>
<div id="module" class="module">
- <h3><img src="{% url telemeta-images "module_playlist.png" %}" style="vertical-align:middle" />
+ <h3><img src="{% url telemeta-images "module_playlist.png" %}" alt="playlist" style="vertical-align:middle" />
{% trans "Musical selection" %}</h3>
<ul class="playlist">
{% for item in items %}
</div>
<div class="home-description">
-<img class="align-left" src="{% url telemeta-images "vox.png" %}" style="vertical-align:middle;" />
+<img class="align-left" src="{% url telemeta-images "vox.png" %}" alt="vox" style="vertical-align:middle;" />
{{ page_content|render_flatpage }}
</div>