diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-17 04:33:37 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-03-17 04:33:37 +0000 |
commit | 30d5ec2c63ebcb4b131d83770aede629ebb80e69 (patch) | |
tree | a77e6e1f5efaa74b85d6e0b48509b30039ed3637 | |
parent | e95db50a7403657838033314d45cc578e77ed392 (diff) | |
download | ampache-30d5ec2c63ebcb4b131d83770aede629ebb80e69.tar.gz ampache-30d5ec2c63ebcb4b131d83770aede629ebb80e69.tar.bz2 ampache-30d5ec2c63ebcb4b131d83770aede629ebb80e69.zip |
added some not enough data errors on the browse functions
-rw-r--r-- | templates/show_albums.inc.php | 5 | ||||
-rw-r--r-- | templates/show_artists.inc.php | 7 | ||||
-rw-r--r-- | templates/show_genres.inc.php | 5 | ||||
-rw-r--r-- | templates/show_playlists.inc.php | 5 | ||||
-rw-r--r-- | templates/show_songs.inc.php | 5 |
5 files changed, 26 insertions, 1 deletions
diff --git a/templates/show_albums.inc.php b/templates/show_albums.inc.php index 3c7b316e..7c1bab45 100644 --- a/templates/show_albums.inc.php +++ b/templates/show_albums.inc.php @@ -55,6 +55,11 @@ $ajax_url = Config::get('ajax_url'); <?php require Config::get('prefix') . '/templates/show_album_row.inc.php'; ?> </tr> <?php } //end foreach ($albums as $album) ?> +<?php if (!count($object_ids)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="7"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td> +</tr> +<?php } ?> <tr class="th-bottom"> <th class="cel_add"><?php echo _('Add'); ?></th> <?php if (Browse::get_filter('show_art')) { ?> diff --git a/templates/show_artists.inc.php b/templates/show_artists.inc.php index f2bbe8fa..a7d908a0 100644 --- a/templates/show_artists.inc.php +++ b/templates/show_artists.inc.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) 2001 - 2008 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -47,6 +47,11 @@ foreach ($object_ids as $artist_id) { <?php require Config::get('prefix') . '/templates/show_artist_row.inc.php'; ?> </tr> <?php } //end foreach ($artists as $artist) ?> +<?php if (!count($object_ids)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="5"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td> +</tr> +<?php } ?> <tr class="th-bottom"> <th class="cel_add"><?php echo _('Add'); ?></th> <th class="cel_artist"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Artist'),'artist_sort_name_bottom'); ?></th> diff --git a/templates/show_genres.inc.php b/templates/show_genres.inc.php index 1e60c8ba..512d1bb6 100644 --- a/templates/show_genres.inc.php +++ b/templates/show_genres.inc.php @@ -63,6 +63,11 @@ foreach ($object_ids as $genre_id) { </td> </tr> <?php } // end foreach genres ?> +<?php if (!count($object_ids)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="4"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td> +</tr> +<?php } ?> <tr class="th-bottom"> <th class="cel_add"><?php echo _('Add'); ?></th> <th class="cel_genre"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Genre'),'sort_genre_name_bottom'); ?></th> diff --git a/templates/show_playlists.inc.php b/templates/show_playlists.inc.php index 553d65f5..3cfa81bd 100644 --- a/templates/show_playlists.inc.php +++ b/templates/show_playlists.inc.php @@ -48,6 +48,11 @@ foreach ($object_ids as $playlist_id) { <?php require Config::get('prefix') . '/templates/show_playlist_row.inc.php'; ?> </tr> <?php } // end foreach ($playlists as $playlist) ?> +<?php if (!count($object_ids)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="6"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td> +</tr> +<?php } ?> <tr class="th-bottom"> <th class="cel_add"><?php echo _('Add'); ?></th> <th class="cel_playlist"><?php echo Ajax::text('?page=browse&action=set_sort&sort=name',_('Playlist Name'),'playlist_sort_name_bottom'); ?></th> diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php index bbc2ab60..91ce1ce9 100644 --- a/templates/show_songs.inc.php +++ b/templates/show_songs.inc.php @@ -58,6 +58,11 @@ $ajax_url = Config::get('ajax_url'); <?php require Config::get('prefix') . '/templates/show_song_row.inc.php'; ?> </tr> <?php } ?> +<?php if (!count($object_ids)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="9"><span class="fatalerror"><?php echo _('Not Enough Data'); ?></span></td> +</tr> +<?php } ?> <tr class="th-bottom"> <th class="cel_add"><?php echo _('Add'); ?></th> <th class="cel_song"><?php echo Ajax::text('?page=browse&action=set_sort&sort=title',_('Song Title'),'sort_song_title_bottom'); ?></th> |