summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/show_index.inc.php14
-rw-r--r--templates/show_objects.inc.php2
-rw-r--r--templates/show_recently_played.inc.php4
3 files changed, 15 insertions, 5 deletions
diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php
index ade19a52..6bcfcfd5 100644
--- a/templates/show_index.inc.php
+++ b/templates/show_index.inc.php
@@ -50,8 +50,18 @@ if (isset($_REQUEST['xspf']) && isset ($_REQUEST['play_info'])){
<?php
$objects = Stats::get_newest('album');
$headers = array('f_link'=>_('Newest Albums'));
- show_box_top();
- require_once Config::get('prefix') . '/templates/show_objects.inc.php';
+ show_box_top('','info-box');
+ require Config::get('prefix') . '/templates/show_objects.inc.php';
+ show_box_bottom();
+ $objects = Stats::get_newest('artist');
+ $headers = array('f_name_link'=>_('Newest Artists'));
+ show_box_top('','info-box');
+ require Config::get('prefix') . '/templates/show_objects.inc.php';
+ show_box_bottom();
+ $objects = Stats::get_newest('genre');
+ $headers = array('f_link'=>_('Newest Genres'));
+ show_box_top('','info-box');
+ require Config::get('prefix') . '/templates/show_objects.inc.php';
show_box_bottom();
?>
</div>
diff --git a/templates/show_objects.inc.php b/templates/show_objects.inc.php
index 12629919..0cb0d935 100644
--- a/templates/show_objects.inc.php
+++ b/templates/show_objects.inc.php
@@ -24,7 +24,7 @@
*/
?>
<table class="table-data" cellspacing="0">
-<tr class="<?php echo flip_class(); ?>">
+<tr>
<?php foreach ($headers as $header) { ?>
<th><?php echo scrub_out($header); ?></th>
<?php } ?>
diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php
index 5b58afcc..e7250a74 100644
--- a/templates/show_recently_played.inc.php
+++ b/templates/show_recently_played.inc.php
@@ -23,7 +23,7 @@
$time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago'));
?>
-<table>
+<table class="table-data" cellspacing="0">
<tr class="table-header">
<td><?php echo _('Username'); ?></td>
<td><?php echo _('Song'); ?></td>
@@ -61,7 +61,7 @@ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days a
$song->format();
?>
-<tr>
+<tr class="<?php echo flip_class(); ?>">
<td>
<a href="<?php echo Config::get('web_path'); ?>/stats.php?action=show_user&amp;user_id=<?php echo scrub_out($row_user->id); ?>">
<?php echo scrub_out($row_user->fullname); ?>