]> git.parisson.com Git - telemeta.git/commitdiff
fix alt images
authoryomguy <yomguy@parisson.com>
Mon, 16 May 2011 12:34:02 +0000 (14:34 +0200)
committeryomguy <yomguy@parisson.com>
Mon, 16 May 2011 12:34:02 +0000 (14:34 +0200)
telemeta/models/__init__.py
telemeta/templates/telemeta_default/base.html
telemeta/templates/telemeta_default/index.html

index bd207dc757a3d983841aec6c07e7761a9bc4fd50..ee2696bbf84f8ede712ecb4a6d0c91b57675ac85 100644 (file)
@@ -1,5 +1,6 @@
 # -*- 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.
@@ -31,6 +32,7 @@
 # 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 *
index a8b3f3b8c73f3d177ebe1818cacaf3418af5bca4..b65145d3e160d77293c6eb4f615ebe358b6b2573 100644 (file)
@@ -1,11 +1,11 @@
 <!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 %}
@@ -47,7 +47,7 @@
 
 <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 }}.
@@ -57,7 +57,7 @@
 <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>
@@ -65,7 +65,7 @@
 </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 %}
index 68348a34878085f1c814ab2a25de0a6580d0ff60..989130ea27c0bcc265267d8098e179c88add0581 100644 (file)
@@ -8,14 +8,14 @@
 
 {% 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 %}
@@ -34,7 +34,7 @@
 </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>