summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-30 08:15:01 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-30 08:15:01 +0000
commit8f866451bc83acd66f05804488c1a982c9c82736 (patch)
tree9533af434e0c06654e4edbfceb0e9eb7f447585a /templates
parent4ff16a2c33746a57a2f3bd67c6dc2f1199b19252 (diff)
downloadampache-8f866451bc83acd66f05804488c1a982c9c82736.tar.gz
ampache-8f866451bc83acd66f05804488c1a982c9c82736.tar.bz2
ampache-8f866451bc83acd66f05804488c1a982c9c82736.zip
massive speed boost on the standard browse functions
Diffstat (limited to 'templates')
-rw-r--r--templates/show_song_row.inc.php3
-rw-r--r--templates/show_songs.inc.php4
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/show_song_row.inc.php b/templates/show_song_row.inc.php
index 492609eb..fb3b69ae 100644
--- a/templates/show_song_row.inc.php
+++ b/templates/show_song_row.inc.php
@@ -28,6 +28,9 @@
<td class="cel_genre"><?php echo $song->f_genre_link; ?></td>
<td class="cel_track"><?php echo $song->f_track; ?></td>
<td class="cel_time"><?php echo $song->f_time; ?></td>
+<?php if (Config::get('ratings')) { ?>
+<td class="cel_rating" id="rating_<?php echo $song->id; ?>_song"><?php Rating::show($song->id,'song'); ?></td>
+<?php } ?>
<td class="cel_action">
<?php if ($GLOBALS['user']->prefs['download']) { ?>
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&amp;song_id=<?php echo $song->id; ?>">
diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php
index 1dd4988f..05d8e679 100644
--- a/templates/show_songs.inc.php
+++ b/templates/show_songs.inc.php
@@ -33,6 +33,7 @@ $ajax_url = Config::get('ajax_url');
<col id="col_genre" />
<col id="col_track" />
<col id="col_time" />
+ <col id="col_rating" />
<col id="col_action" />
</colgroup>
<tr class="th-top">
@@ -43,6 +44,9 @@ $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')) { ?>
+ <th class="cel_rating"><?php echo _('Rating'); ?></th>
+<?php } ?>
<th class="cel_action"><?php echo _('Action'); ?></th>
</tr>
<?php