Changeset 1720

Show
Ignore:
Timestamp:
08/30/08 14:06:09 (3 months ago)
Author:
vollmerk
Message:

move stuff around so it makes more sense and is not messed up by the ajax refresh

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/server/index.ajax.php

    r1640 r1720  
    4242                Song::build_cache(array_keys($data));  
    4343                if (count($data)) {  
    44                         show_box_top(_('Recently Played'));  
    4544                        require_once Config::get('prefix') . '/templates/show_recently_played.inc.php'; 
    46                         show_box_bottom();  
    4745                }  
    4846                $results['recently_played'] = ob_get_clean();  
  • trunk/templates/show_index.inc.php

    r1719 r1720  
    4343                $data = Song::get_recently_played(); 
    4444                Song::build_cache(array_keys($data));  
    45                 $link = Config::get('use_rss') ? ' ' . RSS::get_display('recentlyplayed') :  ''; 
    46                 show_box_top(_('Recently Played') . $link);  
    4745                require_once Config::get('prefix') . '/templates/show_recently_played.inc.php';  
    48                 show_box_bottom();  
    4946        ?> 
    5047</div> 
  • trunk/templates/show_recently_played.inc.php

    r1578 r1720  
    2222/* Define the time places starting at 0 */ 
    2323$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') :  ''; 
     25show_box_top(_('Recently Played') . $link); 
    2426?> 
    2527<table class="tabledata" cellpadding="0" cellspacing="0"> 
     
    103105</tr> 
    104106</table> 
     107<?php show_box_bottom(); ?>