From 4b4930e286690713ba83c2f18cff48bb652e7a0a Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 8 Jun 2008 09:29:29 +0000 Subject: make the verify remove dead songs and tweak single song view a tiny bit --- templates/show_song.inc.php | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) (limited to 'templates/show_song.inc.php') diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php index 9c41d7e7..e8857f64 100644 --- a/templates/show_song.inc.php +++ b/templates/show_song.inc.php @@ -1,7 +1,7 @@ enabled ? 'disable' : 'enable'; ?> +title . ' ' . _('Details')); ?> +
+
+
"> + id,'add',_('Add'),'add_song_' . $song->id); ?> + + + + + + id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?> + +
title . ' ' . _('Details')); - - $songprops['Title'] = scrub_out($song->title) . Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'add_' . $song->id); + $songprops['Title'] = scrub_out($song->title); $songprops['Artist'] = $song->f_artist_link; $songprops['Album'] = $song->f_album_link . " (" . scrub_out($song->year). ")"; $songprops['Genre'] = $song->f_genre_link; @@ -32,20 +45,14 @@ $songprops['Language']= scrub_out($song->language); $songprops['Catalog Number'] = scrub_out($song->catalog_number); $songprops['Bitrate'] = scrub_out($song->f_bitrate); - if ($GLOBALS['user']->has_access('75')) { + if (Access::check('interface','75')) { $songprops['Filename'] = scrub_out($song->file) . " " . $song->f_size . "MB"; } - if (Config::get('download')) { - $songprops['Filename'] = "id . "\">" . $songprops['Filename'] . ""; - } if ($song->update_time) { $songprops['Last Updated'] = date("d/m/Y H:i",$song->update_time); } $songprops['Added'] = date("d/m/Y H:i",$song->addition_time); - ?> - -
- $value) { if(trim($value)) @@ -54,16 +61,5 @@ echo "
" . _($key) . "
" . $value . "
"; } } - echo '
Tags
'; - $tags = Tag::get_object_tags('song', array($song->id)); - foreach($tags as $i) - echo $i['name'] . ' '; - ?>
- id . "&val='+document.getElementById('tagname').value+'", _("Add tag"), 'tag_artist'); - ?> -
-
-
- +?> -- cgit