From: Guillaume Pellerin Date: Thu, 18 Dec 2014 23:22:00 +0000 (+0100) Subject: fix autocode, fix more buttons X-Git-Tag: 1.5.0rc4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=89f0b7644ef314c27d33c98dea29f3f1324b5b3b;p=telemeta.git fix autocode, fix more buttons --- diff --git a/telemeta/templates/telemeta/collection_detail_dc.html b/telemeta/templates/telemeta/collection_detail_dc.html index f8a2ff1f..cda7b9c8 100644 --- a/telemeta/templates/telemeta/collection_detail_dc.html +++ b/telemeta/templates/telemeta/collection_detail_dc.html @@ -1,32 +1,31 @@ -{% extends "telemeta/base.html" %} +{% extends "telemeta/collection_detail.html" %} {% load telemeta_utils %} {% load i18n %} -{% block head_title %}{% trans "Collection" %}{{collection|prepend:': '}} - {{ block.super }}{% endblock %} - -{% if collection %} -{% block title %} -

Collection: {{ collection }}

-{% endblock %} -{% block title_buttons %} -{% trans "Normal View" %} -{% endblock %} - {% block content %} + {% with collection|to_dublincore as resource %} {% include "telemeta/inc/dublincore.html" %} {% endwith %} + + {% block dublincore %} + + + + {% endblock dublincore %} + {% endblock %} {% block delete %} -{% trans "Normal View" %} {% if user.is_authenticated and perms.telemeta.delete_mediacollection %} - {% trans "Delete" %} -{% endif %} -{% endblock %} -{% else %} -

{% trans "No such collection" %}

+ + + {% endif %} +{% endblock %} diff --git a/telemeta/templates/telemeta/instrument_edit_value.html b/telemeta/templates/telemeta/instrument_edit_value.html index d85d0238..d51f7678 100644 --- a/telemeta/templates/telemeta/instrument_edit_value.html +++ b/telemeta/templates/telemeta/instrument_edit_value.html @@ -61,7 +61,7 @@ $(document).ready(function(){ - +
diff --git a/telemeta/templates/telemeta/login.html b/telemeta/templates/telemeta/login.html index 8b446213..5fecb133 100644 --- a/telemeta/templates/telemeta/login.html +++ b/telemeta/templates/telemeta/login.html @@ -31,7 +31,7 @@ $(document).ready(function() { - + diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index fe47e490..91033ad9 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -35,7 +35,7 @@ soundManager.debugMode = false; soundManager.allowPolling = true; soundManager.useHTML5Audio = true; - soundManager.preferFlash = true; + soundManager.preferFlash = false; //initializing the visualizers to be passed to the player {% block graphers %} diff --git a/telemeta/templates/telemeta/mediaitem_detail_dc.html b/telemeta/templates/telemeta/mediaitem_detail_dc.html index 896dd6db..75d6b78d 100644 --- a/telemeta/templates/telemeta/mediaitem_detail_dc.html +++ b/telemeta/templates/telemeta/mediaitem_detail_dc.html @@ -9,15 +9,28 @@ {% include "telemeta/inc/dublincore.html" %} {% endwith %} {% endblock %} + + {% block dublincore %} + + + + {% endblock dublincore %} + {% else %}

{% trans "No such item" %}

{% endif %} {% block delete %} -{% trans "Normal View" %} + {% if user.is_authenticated and perms.telemeta.delete_mediaitem %} - {% trans "Delete" %} + + + {% endif %} {% endblock %} diff --git a/telemeta/templates/telemeta/resource_detail.html b/telemeta/templates/telemeta/resource_detail.html index 6ff1d2e5..69568be0 100644 --- a/telemeta/templates/telemeta/resource_detail.html +++ b/telemeta/templates/telemeta/resource_detail.html @@ -122,13 +122,11 @@ jQuery(document).ready(function(){ {% block delete %} {% if user.is_authenticated and perms.telemeta.delete_mediaresource %} - - {% endif %} {% endblock delete %} diff --git a/telemeta/templates/telemeta/resource_detail_dc.html b/telemeta/templates/telemeta/resource_detail_dc.html index dcd94981..a31231bf 100644 --- a/telemeta/templates/telemeta/resource_detail_dc.html +++ b/telemeta/templates/telemeta/resource_detail_dc.html @@ -21,7 +21,7 @@ {% block delete %} {% if user.is_authenticated and perms.telemeta.delete_mediaresource %} - + diff --git a/telemeta/views/core.py b/telemeta/views/core.py index 58911bc7..e69e6097 100644 --- a/telemeta/views/core.py +++ b/telemeta/views/core.py @@ -275,7 +275,7 @@ def auto_code(collection): if suffixes: return collection.code + '_' + str(max(suffixes)+1) else: - return collection.code + '_' + return collection.code + '_001' def get_room(content_type=None, id=None, name=None):
{{ form.username }}