summaryrefslogtreecommitdiffstats
path: root/templates/show_song_row.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-11-09 19:19:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-11-09 19:19:06 +0000
commitd28c55215d707e54e06e13f761cb5e15d0e01eaf (patch)
tree74cf97739de478d84f0e7be1906fbddbecfad5d6 /templates/show_song_row.inc.php
parented4595833da8e693dace6ec561447443fe7aaf2a (diff)
downloadampache-d28c55215d707e54e06e13f761cb5e15d0e01eaf.tar.gz
ampache-d28c55215d707e54e06e13f761cb5e15d0e01eaf.tar.bz2
ampache-d28c55215d707e54e06e13f761cb5e15d0e01eaf.zip
added link to disable/enable a song to the songs list
Diffstat (limited to 'templates/show_song_row.inc.php')
-rw-r--r--templates/show_song_row.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/show_song_row.inc.php b/templates/show_song_row.inc.php
index 82b0cf4b..2685417b 100644
--- a/templates/show_song_row.inc.php
+++ b/templates/show_song_row.inc.php
@@ -47,5 +47,7 @@
<?php } ?>
<?php if (Access::check('interface','75')) { ?>
<?php echo Ajax::button('?action=show_edit_object&type=song&id=' . $song->id,'edit',_('Edit'),'edit_song_' . $song->id); ?>
+ <?php $icon = $song->enabled ? 'disable' : 'enable'; ?>
+ <?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?>
<?php } ?>
</td>