From: julia <>
Date: Fri, 7 Mar 2008 14:10:24 +0000 (+0000)
Subject: affichage item v1 + bug largeur liste definition list
X-Git-Tag: 1.1~858
X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a605a24088665cb517f2a572c0e8cb628d5c96c6;p=telemeta.git
affichage item v1 + bug largeur liste definition list
---
diff --git a/telemeta/htdocs/css/telemeta.css b/telemeta/htdocs/css/telemeta.css
index f9a1566a..dfcf8c4f 100644
--- a/telemeta/htdocs/css/telemeta.css
+++ b/telemeta/htdocs/css/telemeta.css
@@ -369,7 +369,7 @@ dl.listing dt {
color: #444;
}
dl.listing dd {
-
+ width: 70%;
font-weight: bold;
}
.extraInfos h4 {
@@ -396,7 +396,7 @@ dl.listing dd {
color: #EFEFEF;
}
.extraInfos h4.on a {
- color: #EFEFEF;
+ color: #FFF;
background-position: 0 -17px;
}
.extraInfos h4.on a:hover {
diff --git a/telemeta/htdocs/js/application.js b/telemeta/htdocs/js/application.js
index c3620d80..255494fa 100755
--- a/telemeta/htdocs/js/application.js
+++ b/telemeta/htdocs/js/application.js
@@ -11,6 +11,7 @@ function ployBlocks() {
extraInfos[i].onclick = function() {
this.parentNode.getElementsByTagName("div")[0].toggle();
this.toggleClassName('on');
+ return false;
}
}
}
\ No newline at end of file
diff --git a/telemeta/templates/collection_detail.html b/telemeta/templates/collection_detail.html
index fc933ba1..63c7ee4c 100644
--- a/telemeta/templates/collection_detail.html
+++ b/telemeta/templates/collection_detail.html
@@ -68,8 +68,8 @@
- - Ãtat / Nation
- {% for item in object.items.all %}{{item.etat}}{% if not forloop.last %},{% endif %}{% endfor %}
- - Ethnie / Groupe social
- {% for item in object.items.all %}{{item.ethnie_grsocial}}{% if not forloop.last %},{% endif %}{% endfor %}
+ - Ãtat / Nation
- {% for item in object.items.all %}{% if item.etat %}{{item.etat}}{% if not forloop.last %}, {% endif %}{% endif %}{% endfor %}
+ - Ethnie / Groupe social
- {% for item in object.items.all %}{% if item.ethnie_grsocial %}{{item.ethnie_grsocial}}{% if not forloop.last %}, {% endif %}{% endif %}{% endfor %}
- Contexte de lâenregistrement
- {{ object.terrain_ou_autre }}
diff --git a/telemeta/templates/mediaitem_detail.html b/telemeta/templates/mediaitem_detail.html
index 45a7fa00..17d89d86 100644
--- a/telemeta/templates/mediaitem_detail.html
+++ b/telemeta/templates/mediaitem_detail.html
@@ -2,6 +2,8 @@
{% load telemeta_utils %}
{% block extra_javascript %}
+
+
{% endblock %}
@@ -53,27 +55,85 @@
{% endif %}
-
-
-
-
- {% for field in item.to_list %}
- {% ifnotequal field.name "title" %}
- {% ifnotequal field.name "file" %}
- - {{ field.name }}
- {% ifequal field.name "collection" %}
- - {{ field.value }}
- {% else %}
- - {{ field.value }}
- {% endifequal %}
- {% endifnotequal %}
- {% endifnotequal %}
- {% endfor %}
-
-
+
+
+
+ - Auteur
- {{ item.auteur }}
+ - Année d'enregistrement
- {{ item.annee_enr }}
+ - Date d'enregistrement
- {{ item.dates_enregistr }}
+ - Titre
- {{ item.title }}
+ - Traduction du titre
- {{ item.transcrip_trad }}
+ - Collection
- {{ item.collection.title }}
+ - Durée
- {{ item.duree }}
+ {% if item.collection.ispublished %}
+ - Ref
- {{ item.Ref }}
+ {% endif %}
+
+
+
+
+
+
+
-
+
{% endblock %}
{% else %}
No such item