]> git.parisson.com Git - telemeta.git/commitdiff
update media autonomous minimal player (working), big title cleanup
authoryomguy <yomguy@parisson.com>
Wed, 11 May 2011 21:18:12 +0000 (23:18 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 11 May 2011 21:18:12 +0000 (23:18 +0200)
30 files changed:
INSTALL
telemeta/templates/telemeta_default/base.html
telemeta/templates/telemeta_default/collection_add.html
telemeta/templates/telemeta_default/collection_detail.html
telemeta/templates/telemeta_default/collection_edit.html
telemeta/templates/telemeta_default/collection_list.html
telemeta/templates/telemeta_default/geo_continents.html
telemeta/templates/telemeta_default/geo_countries.html
telemeta/templates/telemeta_default/geo_country_collections.html
telemeta/templates/telemeta_default/inc/mediaitem_list.html
telemeta/templates/telemeta_default/login.html
telemeta/templates/telemeta_default/mediaitem_add.html
telemeta/templates/telemeta_default/mediaitem_copy.html
telemeta/templates/telemeta_default/mediaitem_detail.html
telemeta/templates/telemeta_default/mediaitem_detail_dc.html
telemeta/templates/telemeta_default/mediaitem_edit.html
telemeta/templates/telemeta_default/mediaitem_list.html
telemeta/templates/telemeta_default/mediaitem_performances_edit.html
telemeta/templates/telemeta_default/mediaitem_player.html
telemeta/templates/telemeta_default/messages.html
telemeta/templates/telemeta_default/profile_detail.html
telemeta/templates/telemeta_default/profile_edit.html
telemeta/templates/telemeta_default/registration/password_change_done.html
telemeta/templates/telemeta_default/registration/password_change_form.html
telemeta/templates/telemeta_default/registration/password_reset_complete.html
telemeta/templates/telemeta_default/registration/password_reset_confirm.html
telemeta/templates/telemeta_default/registration/password_reset_done.html
telemeta/templates/telemeta_default/registration/password_reset_form.html
telemeta/templates/telemeta_default/search_criteria.html
telemeta/templates/telemeta_default/search_results.html

diff --git a/INSTALL b/INSTALL
index f1492d4e76590e35d4b6c4ec9dff5ae286f3f33f..c0670861c7a020dcae42744b89a4556796fa9f9b 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -148,7 +148,7 @@ Add the following variables:
     TELEMETA_SUBJECTS =             tuple of subject keywords (used for Dublin Core), such as "Ethnology", etc...
     TELEMETA_CACHE_DIR =            absolute path to the cache directory that you just created
     TELEMETA_GMAP_KEY =             your Google Map API key
-    TELEMETA_DOWNLOAD_ENABLED =     True to enable audio data download
+    TELEMETA_DOWNLOAD_ENABLED =     True to enable raw audio data download
     TELEMETA_STREAMING_FORMATS =    tuple of authoized streaming formats. Ex : ('mp3', 'ogg')
     TELEMETA_PUBLIC_ACCESS_PERIOD = number of years above which item files are automagically published
     EMAIL_HOST =                    your default SMTP server
index bac8560a346ae3a0bbd76d10be1ff1053814eb56..817b092e3b975f0853e254ca5906ba7cc2913990 100644 (file)
@@ -7,6 +7,7 @@
 {% get_available_languages as LANGUAGES %}
 
 <title>{%block head_title %}{% organization %} - Telemeta{% endblock %}</title>
+
 {% block stylesheets %}
 <link rel="stylesheet" type="text/css" href="{% url telemeta-css "telemeta.css" %}" />
 <link rel="alternate" href="/rss" title="RSS 2.0" type="application/rss+xml" />
 <link rel="stylesheet"type="text/css" href="{% url telemeta-css "telemeta_ie6.css" %}" />
 <![endif]-->
 {% endblock %}
+
+{% block javascript %}
 <script src="{% url django.views.i18n.javascript_catalog %}" type="text/javascript"></script>
 <script src="{% url telemeta-js "jquery-1.6.min.js" %}" type="text/javascript"></script>
 <script src="{% url telemeta-js "locale.js" %}" type="text/javascript"></script>
 <script src="{% url telemeta-js "application.js" %}" type="text/javascript"></script>
-
 {% if user.is_authenticated %}
-    <script type='text/javascript'>var CURRENT_USER_NAME="{{ user.username }}";</script>
+<script type='text/javascript'>var CURRENT_USER_NAME="{{ user.username }}";</script>
 {% else %}
-    <script type='text/javascript'>var CURRENT_USER_NAME=undefined;</script>
+<script type='text/javascript'>var CURRENT_USER_NAME=undefined;</script>
 {% endif %}
-{% block extra_javascript %}{% endblock %}
-
-
+{% endblock %}
 
+{% block extra_javascript %}{% endblock %}
 </head>
+
 <body>
 <div id="layout">
+{% block header %}
 <div id="header">
 <div id="logo">
 {% block logo %}
 {% block menu %}
 <ul>
 {# spaces between li and a elements breaks layout #}
-<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="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>
-{% endif %}
+ <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="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>
+ {% endif %}
 </ul>
 {% endblock %}
 </div>
 </div>
+{% endblock header %}
 
 <div id="content">
     <table id="content_header"><tr>
-            <td class="leftcol"><h3>{% block title %}{% endblock %}</h3></td>
+            <td class="leftcol"><h1>{% block title %}{% endblock %}</h1></td>
             <td class="rightcol">{% block title_buttons %}{% endblock %}</td>
     </tr></table>
 {% block content %}{% endblock %}
 <div class="nett"></div>
 </div>
 
-<div id="footer">
 {% block footer %}
+<div id="footer">
  <hr />
  <table width="100%">
   <tr>
    </td>
   </tr>
  </table>
-{% endblock %}
 </div>
+{% endblock %}
 </div>
 </body>
 </html>
index ff77b62971691e922b3803c5823cb41ed51b32ff..df9c62694bb6b9d51469a0ff3a24aa87622d5298 100644 (file)
@@ -3,7 +3,7 @@
 {% load telemeta_utils %}
 
 {% block title %}
-    <h1><img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> Collection : NEW</h1>
+    <img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> Collection : NEW
 {% endblock %}
 
 {% block title_buttons %}
index 7e9838eb3d2a2ff5e6b0b8a1ec692e227fae8993..6db326f96f80955adc58a4834b9d057614a6ef92 100644 (file)
@@ -34,7 +34,7 @@
 {% if collection %}
 
 {% block title %}
-    <h1><img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> Collection : {{ collection.title }}</h1>
+    <img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> Collection : {{ collection.title }}
 {% endblock %}
 
 {% block title_buttons %}
index fa5fd4058f9a2634e33de1eae7dd00a7f3ac2bc2..9182bbc8cd4471974c5120c025f933457653c9c9 100644 (file)
@@ -3,7 +3,7 @@
 {% load telemeta_utils %}
 
 {% block title %}
-    <h1><img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> Collection : {{ collection }}</h1>
+    <img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> Collection : {{ collection }}
 {% endblock %}
 {% block title_buttons %}
     <a href="{% url telemeta-collection-detail collection.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
index 914f4be8011fdbf639ef84b1788c33e52dcc3f80..ac18e1e9a87b0de58822a33daa4416619c3b3ecb 100644 (file)
@@ -5,8 +5,9 @@
 {% block head_title %}{% trans "Media Collections" %} - {{ block.super }}{% endblock %}
 
 {% block title%}
- <h1><img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> {% trans "Media Collections" %}</h1>
+ <img src="{% url telemeta-images "collections_red.png" %}" style="vertical-align:middle" /> {% trans "Media Collections" %}
 {% endblock %}
+
 {% block title_buttons %}
      <a href="{% url telemeta-collections %}" class="component_icon button icon_filter">{% trans "All" %}</a>
      <a href="{% url telemeta-collections-unpublished %}" class="component_icon button icon_filter">{% trans "Unpublished" %}</a>
@@ -22,5 +23,4 @@
 {% include "telemeta/inc/collection_list.html" %}
 </div>
 {% endwith %}
-
 {% endblock %}
index ef557d5d6999f104798639cfae3857ddf7ff525b..3b861523e49a8fc0e9e6760f2bed29ff0f06b764 100644 (file)
@@ -17,7 +17,7 @@ var resourceMap = new ResourceMap('.continents', {
 {% endblock %}
 
 {% block title %}
- <h1><img src="{% url telemeta-images "world_red.png" %}" style="vertical-align:middle" /> {% trans "Geographic Navigator" %}</h1>
+ <img src="{% url telemeta-images "world_red.png" %}" style="vertical-align:middle" /> {% trans "Geographic Navigator" %}
 {% endblock %}
 
 {% block title_buttons %}
index 30bee51767047b4749ce27b25719449c0f19a6c2..6e22bdd7cc0f30d56ffa3dcfc7e24518bcb4eb23 100644 (file)
@@ -5,8 +5,7 @@
 {% block head_title %}{{ continent }} - {% trans "Geographic Navigator" %} - {{ block.super }}{% endblock %}
 
 {% block title %}
-<h1><img src="{% url telemeta-images "world_red.png" %}" style="vertical-align:middle" /> <a href="{% url telemeta-geo-continents %}">{% trans "World" %}</a> /
-  {{ continent }}</h1>
+ <img src="{% url telemeta-images "world_red.png" %}" style="vertical-align:middle" /> <a href="{% url telemeta-geo-continents %}">{% trans "World" %}</a> / {{ continent }}
 {% endblock title %}
 
 {% block content %}
index f12f97f99ec9199076e5f15e38ffdf085068f3dc..624c0301b4359855d419097de9175b46c5d65f77 100644 (file)
@@ -4,15 +4,15 @@
 
 {% block head_title %}{{ country }} - {% trans "Geographic Navigator" %} - {{ block.super }}{% endblock %}
 
-{% block content %}
-<h1><img src="{% url telemeta-images "world_red.png" %}" style="vertical-align:middle" /> <a href="{% url telemeta-geo-continents %}">{% trans "World" %}</a> /
-  <a href="{% url telemeta-geo-countries continent.flatname %}">{{ continent }}</a> 
-  / {{ country }}</h1>
+{% block title %}
+<img src="{% url telemeta-images "world_red.png" %}" style="vertical-align:middle" /> <a href="{% url telemeta-geo-continents %}">{% trans "World" %}</a> /
+  <a href="{% url telemeta-geo-countries continent.flatname %}">{{ continent }}</a> / {{ country }}
+{% endblock title %}
 
+{% block content %}
 {% with object_list as collections %}
 <div class="fullpage">
 {% include "telemeta/inc/collection_list.html" %}
 </div>
 {% endwith %}
-
 {% endblock %}
index 3c6e48bfbdc54b135aa2f86737fc6ea4d19e3663..cc09245c4017c6a7f658356bc48c70dd56a7a44a 100644 (file)
@@ -1,6 +1,7 @@
 {% load telemeta_utils %}
 {% load i18n %}
 {% if items %}
+
 {% if hits %}
 <p class="pagination">
 {% blocktrans %}Items {{ first_on_page }} to {{ last_on_page }} on {{ hits }}{% endblocktrans %}
index db020262ed32dde52b7187b28587b1eb0b5842ec..659df29a7f3671c2cf739d2551b1be070b630c76 100644 (file)
@@ -2,7 +2,7 @@
 {% load i18n %}
 
 {% block title %}
-<h1><img src="{% url telemeta-images "user_red.png" %}" style="vertical-align:middle" /> {% trans "User authentication" %}</h1>
+ <img src="{% url telemeta-images "user_red.png" %}" style="vertical-align:middle" /> {% trans "User authentication" %}
 {% endblock %}
 
 {% block content %}
index 632ed5440b8414c0c3273e754c0b757ea8d2e975..bca4bfcfebf9c6cf8164f7e8f958d398fabfc120 100644 (file)
@@ -4,11 +4,11 @@
 
 {% block head_title %}{% trans "Item" %}- {{ block.super }}{% endblock %}
 
-
 {% if item %}
 {% block title %}
-    <img src="images/item.png" style="vertical-align:middle" /> <h1>Item : NEW</h1>
+    <img src="images/item.png" style="vertical-align:middle" /> Item : NEW
 {% endblock %}
+
 {% block title_buttons %}
     {% if perms.telemeta.add_mediaitem %}
       <a href="{% url telemeta-items %}"
index 549792606854adf59359277d26a70f623c801b71..b302714b2604079733efef6b2c43882f1ca5ce3f 100644 (file)
@@ -8,8 +8,9 @@
 {% endblock %}
 
 {% block title %}
-    <img src="images/item.png" style="vertical-align:middle" /> <h1>Item : NEW</h1>
+ <img src="images/item.png" style="vertical-align:middle" /> Item : NEW
 {% endblock %}
+
 {% block title_buttons %}
     {% if user.is_authenticated and perms.telemeta.add_mediaitem %}
     <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
@@ -43,6 +44,5 @@
        </div>
      </form>
     </div>
-  {% endblock infos %}
-  
+  {% endblock infos %}  
 {% endblock %}
index 928280164f032b7145052a645515b432f2fe629b..b829d80ac96b9d630a4f811d07bcf5ec4d95f0f5 100644 (file)
     });
 
 </script>
-<!--item.approx_duration-->
-
 {% endif %}
 {% endblock %}
 
-
 {% if item %}
 
 {% block title %}
-<img src="images/item.png" style="vertical-align:middle" /> <h1>Item : {{ item }}</h1>
+ <img src="images/item.png" style="vertical-align:middle" /> Item : {{ item }}
 {% endblock %}
+
 {% block title_buttons %}
 <div class="fixedWidthAsPlayer">
     {% if user.is_authenticated and perms.telemeta.change_mediaitem %}
 {% endblock %}
 
 {% block content %}
-
 <div class="{% if item.file %}{% if item.public_access == 'full' or public_access or user.is_staff %}with-rightcol{% endif %}{% endif %}">
     {% if item.file %}
     {% if public_access or user.is_staff %}
index 59f6bb714b6ab356105043796369f33b01a1f79b..0347be9c492d6e0ce27776d9516684db07c76fbb 100644 (file)
@@ -4,7 +4,7 @@
 \r
 {% if item %}\r
 {% block title_buttons %}\r
   <a class="component_icon button icon_previous" href="{% url telemeta-item-detail item.public_id %}">{% trans "Normal View" %}</a>\r
+ <a class="component_icon button icon_previous" href="{% url telemeta-item-detail item.public_id %}">{% trans "Normal View" %}</a>\r
 {% endblock %}\r
 \r
 {% block infos %}\r
index 6a71ce6cf74a4b337db67671ec2fed0eec3cb8ec..afa7f6f0bfa533e041827c1fd370793311581dc8 100644 (file)
@@ -2,45 +2,45 @@
 {% load i18n %}
 {% load telemeta_utils %}
 
-  {% block title %}
-    <img src="images/item.png" style="vertical-align:middle" /> <h1>Item : {{ item }}</h1>
-  {% endblock %}
-  
-  {% block title_buttons %}
-   <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
-  {% endblock %}
+{% block title %}
+<img src="images/item.png" style="vertical-align:middle" /> Item : {{ item }}
+{% endblock %}
 
-  {% block infos %}    
-    <div class="infos">
-     <form enctype="multipart/form-data" id="_editItemForm" method="POST" action="">{% csrf_token %}   
-      <table>
-       <tr><td colspan="2">{% for error in form.non_field_errors %}<li class="error">{{ error }}</li>{% endfor %}</td></tr>
-       {% for field in form %}
-        {% if not field.html_name == "copied_from_item" %}
-        <tr>
-            <tr><td class="error">{{ field.errors }}</td></tr>
-            <td>{{ field.label_tag }}:</td>
-             {% if field.html_name == "file" %}
-              <td> {{ item.file.name }} <br /> {{ field }}</td>
-             {% else %}
-             {% if field.html_name == "collection" %}
-              <td>{{ field }} <br />&nbsp;{% trans "Title" %} : {{ item.collection.title }}</td>
-             {% else %}
-              <td>{{ field }}</td>
-             {% endif %}
-             {% endif %}
-        </tr>
-        {% else %}
-           <tr><td>{{ field.label_tag.as_hidden }}{{ field.as_hidden }}</td></tr>
-        {% endif %}
-       {% endfor %}
-       </table>
-       <div align="center">
-        <a href="{% url telemeta-item-detail item.public_id %}"
-           class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
-        <a href="#" class="component_icon button icon_save"
-   onclick="document.getElementById('_editItemForm').submit(); return false;">{% trans "Save" %}</a>
-       </div>
-     </form>
+{% block title_buttons %}
+<a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
+{% endblock %}
+
+{% block infos %}    
+<div class="infos">
+    <form enctype="multipart/form-data" id="_editItemForm" method="POST" action="">{% csrf_token %}   
+    <table>
+    <tr><td colspan="2">{% for error in form.non_field_errors %}<li class="error">{{ error }}</li>{% endfor %}</td></tr>
+    {% for field in form %}
+    {% if not field.html_name == "copied_from_item" %}
+    <tr>
+        <tr><td class="error">{{ field.errors }}</td></tr>
+        <td>{{ field.label_tag }}:</td>
+            {% if field.html_name == "file" %}
+            <td> {{ item.file.name }} <br /> {{ field }}</td>
+            {% else %}
+            {% if field.html_name == "collection" %}
+            <td>{{ field }} <br />&nbsp;{% trans "Title" %} : {{ item.collection.title }}</td>
+            {% else %}
+            <td>{{ field }}</td>
+            {% endif %}
+            {% endif %}
+    </tr>
+    {% else %}
+        <tr><td>{{ field.label_tag.as_hidden }}{{ field.as_hidden }}</td></tr>
+    {% endif %}
+    {% endfor %}
+    </table>
+    <div align="center">
+    <a href="{% url telemeta-item-detail item.public_id %}"
+        class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
+    <a href="#" class="component_icon button icon_save"
+onclick="document.getElementById('_editItemForm').submit(); return false;">{% trans "Save" %}</a>
     </div>
-  {% endblock infos %}
+    </form>
+</div>
+{% endblock infos %}
index c83cc57a89b198152c16bad0d8caa8a1d03188fb..19ac64a1be355e5501f5817cfa3417c8d3e0b380 100644 (file)
@@ -5,8 +5,9 @@
 {% block head_title %}{% trans "Media Items" %} - {{ block.super }}{% endblock %}
 
 {% block title %}
- <img src="images/item.png" style="vertical-align:middle" /> <h1>{% trans "Media Items" %}</h1>
+ <img src="images/item.png" style="vertical-align:middle" /> {% trans "Media Items" %}
 {% endblock %}
+
 {% block title_buttons %}
     {% if user.is_authenticated and perms.telemeta.add_mediaitem %}
       <a href="{% url telemeta-item-add %}" class="component_icon button icon_add">{% trans "Add" %}</a>
@@ -19,5 +20,4 @@
 {% include "telemeta/inc/mediaitem_list.html" %}
 </div>
 {% endwith %}
-
 {% endblock %}
index c44c71618b99c4e5706e9479e6627da5a28901da..84547a2cbe56fdcd9c8f09035ee7c1613eee1c6e 100644 (file)
@@ -2,15 +2,15 @@
 {% load i18n %}
 {% load telemeta_utils %}
 
-{% block extra_javascript %}
+{% block extra_javascript %}{% endblock %}
+
+{% block title %}
+ <img src="images/item.png" style="vertical-align:middle" /> Item : {{ item }}
 {% endblock %}
 
-  {% block title %}
-    <img src="images/item.png" style="vertical-align:middle" /> <h1>Item : {{ item }}</h1>
-  {% endblock %}
-  {% block title_buttons %}
-   <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
-  {% endblock %}
+{% block title_buttons %}
+ <a href="{% url telemeta-item-detail item.public_id %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
+{% endblock %}
 
 {% block content %}
   {% block infos %}    
        </table>
        <br />
     {% endfor %}
-      
       <div align="center">
         <a href="{% url telemeta-item-detail item.public_id %}"
            class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
         <a href="#" class="component_icon button icon_save"
    onclick="document.getElementById('_editPerformanceForm').submit(); return false;">{% trans "Save" %}</a>
        </div>
-    
      </form>
     </div>
-       
   {% endblock infos %}
 {% endblock content %}
index 29fd10c9ae46849f5b5179e7b99c7398c401f69b..eac13d39ad367c4481b647e4d233140c0b4ad259 100644 (file)
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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 %}
+{% extends "telemeta/mediaitem_detail.html" %}
 {% load telemeta_utils %}
+{% load i18n %}
 
-<title>{%block head_title %}{% organization %} - Telemeta - {% trans "Item" %} : {{ item.title }}{% endblock%}</title>
-
-{% block stylesheets %}
-<link rel="stylesheet" type="text/css" href="{% url telemeta-css "telemeta.css" %}" />
-<link rel="stylesheet" type="text/css" href="{% url telemeta-timeside "css/timeside.css" %}" />
-<link rel="stylesheet" type="text/css" href="{% url telemeta-timeside "skins/lab/style.css" %}" />
-<link rel="stylesheet" type="text/css" href="{% url telemeta-css "player.css" %}" />
-{% endblock %}
-
-<script src="{% url telemeta-js "jquery.js" %}" type="text/javascript"></script>
-<script src="{% url telemeta-js "application.js" %}" type="text/javascript"></script>
-
-{% block extra_javascript %}
-<script src="{% url telemeta-js "soundmanager2.js" %}" type="text/javascript"></script>
-<script src="{% url telemeta-timeside "src/playlist.js" %}" type="text/javascript"></script>
-<script type="text/javascript">
-    soundManager.url = '{% url telemeta-swf "./" %}';
-    soundManager.flashVersion = 9;
-    soundManager.useMovieStar = true; // enable MP4/M4A/AAC
-    soundManager.debugMode = false;
-    soundManager.allowPolling = true;
-
-    var setupPlaylist = function(){
-        {% if user.is_authenticated %}
-        var p = playlistUtils;
-        {% for playlist in playlists %}
-        p.addPlaylist('{{ playlist.playlist.title }}','{{playlist.playlist.public_id}}');
-        {% endfor %}
-
-        {% endif %}
-        {% if item %}
-        var anchor = jQuery('#_add_to_playlist');
-        if(anchor.length){
-            anchor.click(function(evtObj_){
-                p.showPopupAddToPlaylist(evtObj_,'item','{{item.public_id}}','item added to selected playlist');return false;
-            });
-        }
-        {% endif %}
-    };
-
-    {% if item %}
-    var ITEM_PUBLIC_ID = '{{item.public_id}}';
-    {% endif %}
-
-    var scripts = ["{% url telemeta-js "wz_jsgraphics.js" %}",
-        //"{% url telemeta-timeside "src/playlist.js" %}",
-        "{% url telemeta-timeside "src/timeside.js" %}","{% url telemeta-js "playerUtils.js" %}"];
-
-    var _sound_manager_loaded=false;
-    var _jQuery_loaded = false;
-
-    jQuery(document).ready(function(){
-        _jQuery_loaded=true;
-        if(_sound_manager_loaded){
-            loadScripts(scripts, function(){loadPlayer('{% url telemeta-item-analyze-xml item.public_id %}',$('.ts-wave a').attr('href'));setupPlaylist()});
-        }
-    });
-    //$('.ts-wave a').attr('href')
-    soundManager.onready(function() {
-        _sound_manager_loaded=true;
-        if(_jQuery_loaded){
-            loadScripts(scripts, function(){loadPlayer('{% url telemeta-item-analyze-xml item.public_id %}',$('.ts-wave a').attr('href'));setupPlaylist()});
-        }
-    });
-
-</script>
-{% endblock %}
-
-{% if user.is_authenticated and perms.telemeta.change_mediaitem %}
-    <script type='text/javascript'>var CURRENT_USER_NAME="{{ user.username }}";</script>
-{% else %}
-    <script type='text/javascript'>var CURRENT_USER_NAME=undefined;</script>
-{% endif %}
-
-</head>
-
-<body>
+{% block header %}{% endblock %}
+{% block title %}{% endblock %}
+{% block title_buttons %}{% endblock %}
 
 {% block content %}
-
 <div>
 {% if item.file %}
     {% if public_access or user.is_staff %}
-    <div id="player_maximized" class="ts-skin-lab">
-        <a href="#" class="toggle">Minimize</a>
-        <div class="wazing"></div>
-    </div>
     <div id="rightcol" style="float: left;">
         <div id="player_minimized" class="ts-skin-lab">
-            
             <div class="wazing"></div>
             <div id="player" class="ts-player">
-                <div class="ts-viewer">
-                    <div class="ts-wave">
-                        <div class="ts-image-container">
-                            <a href="{% url telemeta-item-export item.public_id,"mp3" %}">
-                               <img class="ts-image" src="{% url telemeta-item-visualize item.public_id,visualizer_id,360,130 %}"
-                                 alt="" /></a>
-                        </div>
-                    </div>
-                </div>
             </div>
         </div>
-        <div class="item_visualization" id="item_visualization_id">
-            <form id="visualizer_id_form" method="get" action="#">
-                <img src="images/plots.png" style="vertical-align:middle" />&nbsp;Visualization :
-                <select id="visualizer_id" name="visualizer_id">
-                    {% for v in visualizers %}
-                    <option value="{% url telemeta-item-visualize item.public_id,v.id,"WIDTH","HEIGHT" %}">
-                            {{v.name}}</option>
-                    {% endfor %}
-                </select>
-                <input style="visibility: hidden;" type="submit" value="Set" />
-            </form>
-        </div>
-
-        <div id="tabs_container">
-            <!-- this div will be hidden when everything is fully loaded-->
-            <span id="loading_span" href="#"><img style="vertical-align:middle" src="/images/wait.gif"/>&nbsp;
-                <span id="loading_span_text">Loading...</span></span>
-            <a id="tab_analysis" style="display:none" name ="analyzer_div_id" href="#">{% trans "Analysis" %}</a>
-            <a id="tab_markers" style="display:none" name="markers_div_id" href="#">{% trans "Markers" %}</a>
-        </div>
-
-        <div class="markers" id="markers_div_id"></div>
-
-        <div class="analyzer" id="analyzer_div_id">
-            <table width="100%">
-                <tr class="analyzer-title">
-                    <td>{% trans "Property" %}</td>
-                    <td>{% trans "Value" %}</td>
-                    <td>{% trans "Unit" %}</td>
-                </tr>
-               <!-- {% for analyser in analysers %}
-                <tr class="analyzer-line">
-                    <td>
-                        {{ analyser.name }}
-                    </td>
-                    <td>
-                        {{ analyser.value }}
-                    </td>
-                    <td>
-                        {{ analyser.unit }}
-                    </td>
-                </tr>
-                {% endfor %}-->
-            </table>
-        </div>
-        <!--</div>-->
-
-        {% if audio_export_enabled %}
-        <div class="exporter">
-            <p><img src="images/download.png" style="vertical-align:middle" /> {% trans "Download:" %}
-                {% for format in export_formats %}
-                <a href="{% url telemeta-item-export item.public_id,format.extension %}">
-                    <img src="images/{{ format.extension }}.png" style="vertical-align:middle" alt="{{ format.extension }}" /></a>
-                {% endfor %}</p>
-        </div>
-        {% endif %}
-
     </div>
     {% endif %}
-    {% endif %}
-
+{% endif %}
 </div>
-
 {% endblock %}
 
-</body>
-</html>
\ No newline at end of file
+{% block footer %}{% endblock %}
index 6eabeab50b7cc4813a660de5c9eb75bb81b32d4d..c0442beabcf8c3fbf871a1dbb55cd664ac68bd69 100644 (file)
@@ -2,14 +2,11 @@
 {% load i18n %}
 
 {% block content %}
-
 {% if messages %}
  {% for message in messages %}
   <h1>{{ message }}</h1>
   <p>{{ description }}
-  
  {% endfor %}
 {% endif %}
-
 {% endblock %}
 
index 0b01b019379fd9a1c72f3ba4f0a1f4be500cd1b6..a901f13a86d5aa30f15fc9a20220a3af5eb6b726 100644 (file)
@@ -4,6 +4,10 @@
         
 {% block head_title %}{% trans "User Profile" %} : {{ usr.username }}{% endblock %}
 
+{% block title %}
+ <img src="{% url telemeta-images "user_red.png" %}" style="vertical-align:middle" /> {% trans "User profile" %} : {{ usr.username }}
+{% endblock %}
+
 {% block content %}
   <div class="module-set" style="width: 33%">
   {% block modules %}
@@ -21,9 +25,8 @@
     </ul>
    </div>
   {% endblock %}
 </div>
+ </div>
 
-  <h1><img src="{% url telemeta-images "user_red.png" %}" style="vertical-align:middle" /> {% trans "User profile" %} : {{ usr.username }}</h1>
     <div class="infos" style="padding-top: 1em;">
      <dl class="listing">
       <dt>{% trans "First Name" %}</dt><dd>{{ usr.first_name }}</dd>
index 7bf81845164786ab792d7e72c58777ca48e1a9e2..31b7693dd365f6c3838451767a1a685a0418da02 100644 (file)
@@ -2,12 +2,13 @@
 {% load i18n %}
 {% load telemeta_utils %}
 
-<a href="{% url telemeta-profile-detail usr.username %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
+{% block title_buttons %}
+ <a href="{% url telemeta-profile-detail usr.username %}" class="component_icon button icon_cancel">{% trans "Cancel" %}</a>
+{% endblock %}
 
 {% block content %}
-       <h1><img src="{% url telemeta-images "user_red.png" %}" style="vertical-align:middle" /> {% trans "User profile" %} : {{ usr.username }}</h1>
        <div class="infos" style="padding-top: 1em;">
-       
+
         <form method="POST" id="_editUserProfileForm" action="">{% csrf_token %}
        <table>
        {% for form in forms %}
index 77197a0336bccd50940a170eb04973efd2efff7c..3d3d9facf09ad9981e4069c8843afee87fccdbdd 100644 (file)
@@ -1,9 +1,10 @@
 {% extends "telemeta/base.html" %}
 {% load i18n %}
 {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}{% trans 'Change password' %} / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %}
+
 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
 
-{% block title %}<br /><h1>{% trans 'Password change successful' %}</h1>{% endblock %}
+{% block title %}<br />{% trans 'Password change successful' %}{% endblock %}
 
 {% block content %}
 
index a36571702ad63da82dda74a1e19fe1507df9dc74..4f138ef1490bc0c5f327fd3557e3b94517efc5e0 100644 (file)
@@ -4,7 +4,7 @@
 {% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
 
-{% block title %}<br /><h1>{% trans 'Password change' %}</h1>{% endblock %}
+{% block title %}<br />{% trans 'Password change' %}{% endblock %}
 
 {% block content %}<div id="content-main">
 
index 8df0b86db6dd1dd221f20b1b0d602fb3a3baf5ec..92eda265a4703eb6e1ff9a3708e7028c26ce9275 100644 (file)
@@ -3,7 +3,7 @@
 
 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
 
-{% block title %}<br /><h1>{% trans 'Password reset complete' %}</h1>{% endblock %}
+{% block title %}<br />{% trans 'Password reset complete' %}{% endblock %}
 
 {% block content %}
 
index bc8a06fc54283be02b651dbf9b8c1b5281e8decf..990c45ee25002345e7b2b9b39348ddffb428c939 100644 (file)
@@ -3,7 +3,7 @@
 
 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset confirmation' %}</div>{% endblock %}
 
-{% block title %}<br /><h1>{% trans 'Password reset' %}</h1>{% endblock %}
+{% block title %}<br />{% trans 'Password reset' %}{% endblock %}
 
 {% block content %}
 
index 322ac703aae23dec73c0d4d2dd3106f1f0dcd665..284179547b07398c7b05985876b45eab38f155b5 100644 (file)
@@ -3,7 +3,7 @@
 
 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
 
-{% block title %}<br /><h1>{% trans 'Password reset successful' %}</h1>{% endblock %}
+{% block title %}<br />{% trans 'Password reset successful' %}{% endblock %}
 
 {% block content %}
 
index ddfd6f99440405bb39eb3e8217fdb3806d60a8c3..cedf114607b27bfd75c1c4be4105b61fe07b33b6 100644 (file)
@@ -3,7 +3,7 @@
 
 {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password reset' %}</div>{% endblock %}
 
-{% block title %}<br /><h1>{% trans "Password reset" %}</h1>{% endblock %}
+{% block title %}<br />{% trans "Password reset" %}{% endblock %}
 
 {% block content %}
 
index da523e329e8effe04d899acce0e2ae7e483d956a..6ed4fd44c5f69de527391cc8734e5b856ec3d457 100644 (file)
@@ -52,7 +52,7 @@ $(document).ready(function () {
 {% endblock %}
 
 {% block title %}
-<h1><img src="{% url telemeta-images "adv_search_red.png" %}" style="vertical-align:middle" /> {% trans "Advanced Search" %}</h1>
+ <img src="{% url telemeta-images "adv_search_red.png" %}" style="vertical-align:middle" /> {% trans "Advanced Search" %}
 {% endblock %}
 
 {% block content %}
index a6ab0d62f4433ad95a74c7c727be7b9ccfd4c131..56e1c331e39c9249867c9a876e1877aaa85a87fc 100644 (file)
@@ -5,7 +5,7 @@
 {% block head_title %}{% trans "Search Results" %} - {{ block.super }}{% endblock %}
 
 {% block title %}
-<h1><img src="{% url telemeta-images "search_red.png" %}" style="vertical-align:middle" /> {% trans "Search Results" %}</h1>
+ <img src="{% url telemeta-images "search_red.png" %}" style="vertical-align:middle" /> {% trans "Search Results" %}
 {% endblock %}
 
 {% block content %}