diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:00:32 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 03:38:46 -0500 |
commit | ef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch) | |
tree | e4377fb129a899e65aaaf421f8c97098aecaedd5 /templates/show_user_stats.inc.php | |
parent | 8a750c3e875d590d351c3042570a134fcdf03e5d (diff) | |
download | ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2 ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip |
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'templates/show_user_stats.inc.php')
-rw-r--r-- | templates/show_user_stats.inc.php | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/templates/show_user_stats.inc.php b/templates/show_user_stats.inc.php index 5bfdadaf..bac817c5 100644 --- a/templates/show_user_stats.inc.php +++ b/templates/show_user_stats.inc.php @@ -1,5 +1,5 @@ <?php -/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */ +/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) @@ -23,45 +23,45 @@ <?php UI::show_box_top(sprintf('%s Favorites'), $working_user->fullname); ?> <table class="tabledata"> <tr> - <td valign="top"> - <?php - if (count($favorite_artists)) { - $items = $working_user->format_favorites($favorite_artists); - $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=artist">' . - UI::get_icon('all', T_('Favorite Artists')) . '</a> ' . T_('Favorite Artists'); - show_info_box($title,'artist',$items); - } - else { - echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; - } - ?> - </td> - <td valign="top"> - <?php - if (count($favorite_albums)) { - $items = $working_user->format_favorites($favorite_albums); + <td valign="top"> + <?php + if (count($favorite_artists)) { + $items = $working_user->format_favorites($favorite_artists); + $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=artist">' . + UI::get_icon('all', T_('Favorite Artists')) . '</a> ' . T_('Favorite Artists'); + show_info_box($title,'artist',$items); + } + else { + echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; + } + ?> + </td> + <td valign="top"> + <?php + if (count($favorite_albums)) { + $items = $working_user->format_favorites($favorite_albums); $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=album">' . UI::get_icon('all', T_('Favorite Albums')) . '</a> ' . T_('Favorite Albums'); - show_info_box($title,'album',$items); - } - else { - echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; - } - ?> - </td> - <td valign="top"> - <?php - if (count($favorite_songs)) { - $items = $working_user->format_favorites($favorite_songs); + show_info_box($title,'album',$items); + } + else { + echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; + } + ?> + </td> + <td valign="top"> + <?php + if (count($favorite_songs)) { + $items = $working_user->format_favorites($favorite_songs); $title = '<a href="' . Config::get('web_path') . '/stream.php?action=play_favorite&type=song">' . UI::get_icon('all', T_('Favorite Songs')) . '</a> ' . T_('Favorite Songs'); - show_info_box($title,'your_song',$items); - } - else { - echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; - } - ?> - </td> + show_info_box($title,'your_song',$items); + } + else { + echo "<span class=\"error\">" . T_('Not Enough Data') . "</span>"; + } + ?> + </td> </tr> </table> <?php UI::show_box_bottom(); ?> |