summaryrefslogtreecommitdiffstats
path: root/templates/show_songs.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-12 02:52:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-12 02:52:50 +0000
commit693e26e2ad074f8cc9d37098a0568cd93ae30f52 (patch)
tree8588523335a337d0971df768da0456e325bb6b66 /templates/show_songs.inc.php
parent003619c52c0370f03b9edb466addaaebac13ce41 (diff)
downloadampache-693e26e2ad074f8cc9d37098a0568cd93ae30f52.tar.gz
ampache-693e26e2ad074f8cc9d37098a0568cd93ae30f52.tar.bz2
ampache-693e26e2ad074f8cc9d37098a0568cd93ae30f52.zip
commit of the patches from codeoverload to implement tagging, will not work without manual modification of database, yes.. this commit breaks things cope
Diffstat (limited to 'templates/show_songs.inc.php')
-rw-r--r--templates/show_songs.inc.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
index 2e3c3579..54ead654 100644
--- a/templates/show_songs.inc.php
+++ b/templates/show_songs.inc.php
@@ -44,12 +44,16 @@ $ajax_url = Config::get('ajax_url');
<th class="cel_genre"><?php echo _('Genre'); ?></th>
<th class="cel_track"><?php echo Ajax::text('?page=browse&action=set_sort&sort=track',_('Track'),'sort_song_track'); ?></th>
<th class="cel_time"><?php echo Ajax::text('?page=browse&action=set_sort&sort=time',_('Time'),'sort_song_time'); ?></th>
-<?php if (Config::get('ratings')) { ?>
+<?php if (Config::get('ratings')) {
+ Rating::build_cache('song', $object_ids);
+ ?>
<th class="cel_rating"><?php echo _('Rating'); ?></th>
<?php } ?>
+ <th class="cel_tags"><?php echo _('Tags'); ?></th>
<th class="cel_action"><?php echo _('Action'); ?></th>
</tr>
-<?php
+<?php
+ Song::build_cache($object_ids);
foreach ($object_ids as $song_id) {
$song = new Song($song_id);
$song->format();
@@ -74,6 +78,7 @@ $ajax_url = Config::get('ajax_url');
<?php if (Config::get('ratings')) { ?>
<th class="cel_rating"><?php echo _('Rating'); ?></th>
<?php } ?>
+ <th class="cel_tags"><?php echo _('Tags'); ?></th>
<th class="cel_action"><?php echo _('Action'); ?></th>
</tr>
</table>