From: yomguy Date: Fri, 26 Nov 2010 00:59:42 +0000 (+0000) Subject: try templates X-Git-Tag: 1.1~486^2~17 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4e614ccf74f785531032fd27c8d74b9c28e95354;p=telemeta.git try templates --- diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index b09e6a88..90729006 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -1 +1,208 @@ {% extends "telemeta_default/mediaitem_detail.html" %} + +{% block content %} + +

Item : {{ item }}

+
+ +{% if item.file %} +
+ Minimize +
+
+
+
+ Maximize +
+
+
+
+
+ + +
+
+
+
+
+ +
+
+ + + +
+ +
+ + + + + + + {% for analyser in analysers %} + + + + + + {% endfor %} +
PropertyValueUnit
+ {{ analyser.name }} + + {{ analyser.value }} + + {{ analyser.unit }} +
+
+ +
+ + {% if audio_export_enabled %} +
+

{% trans "Download:" %} + {% for format in export_formats %} + {{ format.name }} + {% endfor %}

+
+ {% endif %} + +
+{% endif %} + +
+ {% block general_info %} +
+ {% dl_field item "title" %} + {% dl_field item "alt_title" %} + {% dl_field item "collector" %} +
{% field_label item "collection" %}
+
{{ item.collection }}
+ {% if item.recorded_from_date %} +
{% trans "Recording date" %}
+
{{ item.recorded_from_date }} {{ item.recorded_to_date|prepend:" - " }}
+ {% endif %} +
+ {% endblock general_info %} +
+
+ {% block geoethnic_data %} +
+

{% trans "Geographic and cultural informations" %}

+
+ {% if item.location %} +
{% trans "Location" %}
+
{{ item.location.fullnames|join:"
" }}
+ {% endif %} + {% dl_field item "location_comment" %} + {% dl_field item "cultural_area" %} + {% dl_field item "ethnic_group" %} + {% dl_field item "context_comment" %} + {% dl_field item "keywords" join with ", " %} +
+
+ {% endblock geoethnic_data %} +
+
+ {% block musical_data %} +
+

{% trans "Musical informations" %}

+
+ {% dl_field item "vernacular_style" %} + {% dl_field item "generic_style" %} + {% dl_field item "author" %} +
+ {% if item.performances %} +
+ + + + + + + + + + + {% for performance in item.performances.all %} + + + + + + + {% endfor %} + +
{% field_label "MediaItemPerformance" "instruments_num" %}{% field_label "MediaItemPerformance" "instrument" %}{% field_label "MediaItemPerformance" "alias" %}{% field_label "MediaItemPerformance" "musicians" %}
{{ performance.instruments_num }}{{ performance.instrument|default:"" }}{{ performance.alias|default:"" }}{{ performance.musicians }}
+
+ {% endif %} +
+ {% endblock musical_data %} +
+
+ {% block general_data %} +
+

{% trans "General informations" %}

+
+ {% dl_field item "comment" %} + {% dl_field item "collector_selection" %} +
+
+ {% endblock general_data %} +
+
+ {% block archive_data %} +
+

{% trans "Archiving data" %}

+
+ {% dl_field item "code" %} + {% dl_field item "old_code" %} + {% dl_field item "track" %} + {% dl_field item "creator_reference" %} + {% dl_field item "external_references" %} + {% dl_field item "public_access_label" %} +
+
+ {% endblock archive_data %} +
+
+ {% block technical_data %} +
+

{% trans "Technical data" %}

+
+
+
{% trans "Media type" %}
{% trans "Audio" %}
+ {% dl_field item "approx_duration" %} +
+
+
+ {% endblock technical_data %} +
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/telemeta/web/base.py b/telemeta/web/base.py index b50b2777..12f61cce 100644 --- a/telemeta/web/base.py +++ b/telemeta/web/base.py @@ -124,7 +124,7 @@ class WebView: if request.REQUEST.has_key('grapher_id'): grapher_id = request.REQUEST['grapher_id'] else: - grapher_id = 'waveform' + grapher_id = 'waveform_awdio' file = public_id + '.xml'