Changeset 1720
- Timestamp:
- 08/30/08 14:06:09 (3 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
server/index.ajax.php (modified) (1 diff)
-
templates/show_index.inc.php (modified) (1 diff)
-
templates/show_recently_played.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/index.ajax.php
r1640 r1720 42 42 Song::build_cache(array_keys($data)); 43 43 if (count($data)) { 44 show_box_top(_('Recently Played'));45 44 require_once Config::get('prefix') . '/templates/show_recently_played.inc.php'; 46 show_box_bottom();47 45 } 48 46 $results['recently_played'] = ob_get_clean(); -
trunk/templates/show_index.inc.php
r1719 r1720 43 43 $data = Song::get_recently_played(); 44 44 Song::build_cache(array_keys($data)); 45 $link = Config::get('use_rss') ? ' ' . RSS::get_display('recentlyplayed') : '';46 show_box_top(_('Recently Played') . $link);47 45 require_once Config::get('prefix') . '/templates/show_recently_played.inc.php'; 48 show_box_bottom();49 46 ?> 50 47 </div> -
trunk/templates/show_recently_played.inc.php
r1578 r1720 22 22 /* Define the time places starting at 0 */ 23 23 $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); 24 $link = Config::get('use_rss') ? ' ' . RSS::get_display('recentlyplayed') : ''; 25 show_box_top(_('Recently Played') . $link); 24 26 ?> 25 27 <table class="tabledata" cellpadding="0" cellspacing="0"> … … 103 105 </tr> 104 106 </table> 107 <?php show_box_bottom(); ?>
