From 95ce56735385756b2eeb0f0647bc1d51a170fca1 Mon Sep 17 00:00:00 2001 From: olivier <> Date: Tue, 9 Feb 2010 18:17:04 +0000 Subject: [PATCH] add year of recording to tabular lists ; fix some js error --- telemeta/htdocs/css/telemeta.css | 4 +++- telemeta/htdocs/js/player.js | 3 +++ .../telemeta_default/collection_detail.html | 2 ++ .../telemeta_default/inc/collection_list.html | 9 +++++++++ .../telemeta_default/inc/mediaitem_list.html | 17 +++++++++++++++++ 5 files changed, 34 insertions(+), 1 deletion(-) diff --git a/telemeta/htdocs/css/telemeta.css b/telemeta/htdocs/css/telemeta.css index a77ee55c..fb90179c 100644 --- a/telemeta/htdocs/css/telemeta.css +++ b/telemeta/htdocs/css/telemeta.css @@ -585,8 +585,10 @@ table.listing thead th { table.listing thead th :link:hover, table.listing thead th :visited:hover { background-color: transparent; } -table.listing thead th a { +table.listing a { border: none; +} +table.listing thead th a { padding-right: 12px; } table.listing th.asc a, table.listing th.desc a { font-weight: bold } diff --git a/telemeta/htdocs/js/player.js b/telemeta/htdocs/js/player.js index 2a479828..4ff463d1 100644 --- a/telemeta/htdocs/js/player.js +++ b/telemeta/htdocs/js/player.js @@ -44,6 +44,9 @@ function change_visualizer() { function load_player(duration) { $(document).ready(function () { + if (!$('#player').length) + return; + soundUrl = $('.ts-wave a').attr('href'); $('.ts-wave a img').insertAfter('.ts-wave a'); diff --git a/telemeta/templates/telemeta_default/collection_detail.html b/telemeta/templates/telemeta_default/collection_detail.html index bf95a9f6..46c27d7b 100644 --- a/telemeta/templates/telemeta_default/collection_detail.html +++ b/telemeta/templates/telemeta_default/collection_detail.html @@ -135,8 +135,10 @@

Items

{% with collection.items.enriched as items %} + {% with "1" as location_name %} {% include "telemeta/inc/mediaitem_list.html" %} {% endwith %} + {% endwith %}