summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-22 02:29:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-22 02:29:05 +0000
commitd4b700e2fe1eeb47fbea7b61c295eba16f30c41c (patch)
treee4c7f478d0b20d0cf7823953c67ba238a08b7527 /templates
parentcebb21facc2e2219f1d498def8ee19bbb4b72f7e (diff)
downloadampache-d4b700e2fe1eeb47fbea7b61c295eba16f30c41c.tar.gz
ampache-d4b700e2fe1eeb47fbea7b61c295eba16f30c41c.tar.bz2
ampache-d4b700e2fe1eeb47fbea7b61c295eba16f30c41c.zip
added ability to prune empty playlists
Diffstat (limited to 'templates')
-rw-r--r--templates/show_playlist_box.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/show_playlist_box.inc.php b/templates/show_playlist_box.inc.php
index 168e76e2..e020f441 100644
--- a/templates/show_playlist_box.inc.php
+++ b/templates/show_playlist_box.inc.php
@@ -42,6 +42,9 @@ $playlist_id = scrub_out($_REQUEST['playlist_id']);
<?php } else { ?>
<li><a href="<?php echo $web_path; ?>/playlist.php?action=show_import_playlist"><?php echo _('Import From File'); ?></a></li>
<li><a href="<?php echo $web_path; ?>/playlist.php?action=new"><?php echo _('Create New Playlist'); ?></a></li>
+ <?php if ($GLOBALS['user']->has_access(100)) { ?>
+ <li><a href="<?php echo $web_path; ?>/playlist.php?action=prune_empty"><?php echo _('Delete Empty Playlists'); ?></a</li>
+ <?php } ?>
<?php } ?>
</ul>
</td>