From b770ffe0de246594b9caa8d630c8a67055cd99f0 Mon Sep 17 00:00:00 2001
From: olivier <>
Date: Fri, 9 Jan 2009 18:51:06 +0000
Subject: [PATCH] templates: add item and collection metadata inheritance
blocks
---
telemeta/templates/telemeta/collection_detail.html | 10 ++++++++++
telemeta/templates/telemeta/mediaitem_detail.html | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/telemeta/templates/telemeta/collection_detail.html b/telemeta/templates/telemeta/collection_detail.html
index fa9812a5..22c7f335 100644
--- a/telemeta/templates/telemeta/collection_detail.html
+++ b/telemeta/templates/telemeta/collection_detail.html
@@ -51,6 +51,7 @@
{% if object.items.count %}{{ object.items.count }} {% ifequal object.items.count 1 %}item{% else %}items{% endifequal %}{% else %}No item{% endif %}
+ {% block general_info %}
{% if object.creator %}- Auteur / Cédant
- {{ object.creator }}
{% endif %}
@@ -70,8 +71,10 @@
{% endif %}
+ {% endblock general_info %}
{% if object.is_published %}
{% endif %}
Items
{% with object.ordered_items as items %}
diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html
index 9325aab8..02372c07 100644
--- a/telemeta/templates/telemeta/mediaitem_detail.html
+++ b/telemeta/templates/telemeta/mediaitem_detail.html
@@ -125,6 +125,7 @@ load_player({{ item.get_duration }});
{% endif %}
+ {% block general_info %}
{% if item.auteur %}- Auteur
- {{ item.auteur }}
{% endif %}
{% if item.annee_enr %}- Année d'enregistrement
- {{ item.annee_enr }}
{% endif %}
@@ -137,8 +138,10 @@ load_player({{ item.get_duration }});
- Ref
- {{ item.Ref }}
{% endif %}
+ {% endblock general_info %}
+ {% endblock musical_performances %}
--
2.39.5