summaryrefslogtreecommitdiffstats
path: root/templates/show_manage_democratic.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:16:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 21:16:13 +0000
commit27ba8110cab5b09220a110f0e2f3af026582c9fc (patch)
treed54b665062b1dab40deff47ca519eca1ee251db0 /templates/show_manage_democratic.inc.php
parent3508380e994d80c6df1a287606a969c218d81694 (diff)
downloadampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.tar.gz
ampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.tar.bz2
ampache-27ba8110cab5b09220a110f0e2f3af026582c9fc.zip
democratic play working, if still slightly sketchy
Diffstat (limited to 'templates/show_manage_democratic.inc.php')
-rw-r--r--templates/show_manage_democratic.inc.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/show_manage_democratic.inc.php b/templates/show_manage_democratic.inc.php
index c490d856..c9612f23 100644
--- a/templates/show_manage_democratic.inc.php
+++ b/templates/show_manage_democratic.inc.php
@@ -30,19 +30,22 @@ show_box_top(_('Manage Democratic Playlists')); ?>
<tr class="th-top">
<th class="cel_number"><?php echo _('Playlist'); ?></th>
<th class="cel_base_playlist"><?php echo _('Base Playlist'); ?></th>
- <th class="cel_vote_count"><?php echo _('Current Number of Votes'); ?></th>
+ <th class="cel_vote_count"><?php echo _('Songs'); ?></th>
<th class="cel_action"><?php echo _('Action'); ?></th>
</tr>
<?php
foreach ($playlists as $democratic_id) {
$democratic = new Democratic($democratic_id);
$playlist = new Playlist($democratic->base_playlist);
+ $playlist->format();
?>
-<tr>
+<tr class="<?php echo flip_class(); ?>">
<td><?php echo abs($democratic->id); ?></td>
- <td><?php echo scrub_out($playlist->name); ?></td>
+ <td><?php echo $playlist->f_link; ?></td>
<td><?php echo $democratic->count_items(); ?></td>
- <td>&nbsp;</td>
+ <td>
+ <a href="<?php echo Config::get('web_path'); ?>/stream.php?action=democratic"><?php echo get_user_icon('all'); ?></a>
+ </td>
</tr>
<?php } if (!count($playlists)) { ?>
<tr>
@@ -50,6 +53,7 @@ show_box_top(_('Manage Democratic Playlists')); ?>
</tr>
<?php } ?>
</table>
+<br />
<div>
<a class="button" href="<?php echo Config::get('web_path'); ?>/democratic.php?action=show_create"><?php echo _('Create New Playlist'); ?></a>
</div>