From 2e4620adaab9e46d31b6156fc82e566708ff7b40 Mon Sep 17 00:00:00 2001 From: Afterster Date: Tue, 29 Oct 2013 00:01:39 +0100 Subject: Fix sort when browsing (#50) --- templates/show_albums.inc.php | 2 +- templates/show_artists.inc.php | 4 ++-- templates/show_live_streams.inc.php | 12 ++++++------ templates/show_playlists.inc.php | 8 ++++---- templates/show_smartplaylists.inc.php | 8 ++++---- templates/show_songs.inc.php | 10 +++++----- templates/show_users.inc.php | 12 ++++++------ templates/show_videos.inc.php | 16 ++++++++-------- 8 files changed, 36 insertions(+), 36 deletions(-) (limited to 'templates') diff --git a/templates/show_albums.inc.php b/templates/show_albums.inc.php index 41d5ccb0..01f939fb 100644 --- a/templates/show_albums.inc.php +++ b/templates/show_albums.inc.php @@ -74,7 +74,7 @@ $web_path = Config::get('web_path'); id . '&sort=name', T_('Album'),'album_sort_name_bottom'); ?> - + id . '&sort=artist', T_('Artist'),'album_sort_artist'); ?> id . '&sort=year', T_('Year'),'album_sort_year_bottom'); ?> diff --git a/templates/show_artists.inc.php b/templates/show_artists.inc.php index 0a3b664b..6dd1304a 100644 --- a/templates/show_artists.inc.php +++ b/templates/show_artists.inc.php @@ -38,7 +38,7 @@ $web_path = Config::get('web_path'); - + id . '&type=artist&sort=name', T_('Artist'),'artist_sort_name'); ?> @@ -66,7 +66,7 @@ foreach ($object_ids as $artist_id) { - + id . '&sort=name', T_('Artist'),'artist_sort_name_bottom'); ?> diff --git a/templates/show_live_streams.inc.php b/templates/show_live_streams.inc.php index 1cc782f0..6ccd52d7 100644 --- a/templates/show_live_streams.inc.php +++ b/templates/show_live_streams.inc.php @@ -35,9 +35,9 @@ $web_path = Config::get('web_path'); - - - + id . '&sort=name', T_('Name'),'live_stream_sort_name'); ?> + id . '&sort=call_sign', T_('Callsign'),'live_stream_call_sign'); ?> + id . '&sort=frequency', T_('Frequency'),'live_stream_frequency'); ?> @@ -57,9 +57,9 @@ foreach ($object_ids as $radio_id) { - - - + id . '&sort=name', T_('Name'),'live_stream_sort_name_bottom'); ?> + id . '&sort=call_sign', T_('Callsign'),'live_stream_call_sign_bottom'); ?> + id . '&sort=frequency', T_('Frequency'),'live_stream_frequency_bottom'); ?> diff --git a/templates/show_playlists.inc.php b/templates/show_playlists.inc.php index 64704b83..03fccfa7 100644 --- a/templates/show_playlists.inc.php +++ b/templates/show_playlists.inc.php @@ -32,10 +32,10 @@ - + id . '&type=playlist&sort=name', T_('Playlist Name'),'playlist_sort_name'); ?>   - + id . '&type=playlist&sort=user', T_('Owner'),'playlist_sort_owner'); ?> - + id . '&type=playlist&sort=name', T_('Playlist Name'),'playlist_sort_name_bottom'); ?>   - + id . '&type=playlist&sort=user', T_('Owner'),'playlist_sort_owner_bottom'); ?> diff --git a/templates/show_smartplaylists.inc.php b/templates/show_smartplaylists.inc.php index 456c6302..272a8691 100644 --- a/templates/show_smartplaylists.inc.php +++ b/templates/show_smartplaylists.inc.php @@ -32,9 +32,9 @@ - + id . '&type=smartplaylist&sort=name', T_('Playlist Name'),'playlist_sort_name'); ?>   - + id . '&type=smartplaylist&sort=user', T_('Owner'),'playlist_sort_owner'); ?> - + id . '&type=playlist&sort=name', T_('Playlist Name'),'playlist_sort_name_bottom'); ?>   - + id . '&type=playlist&sort=user', T_('Owner'),'playlist_sort_owner_bottom'); ?> diff --git a/templates/show_songs.inc.php b/templates/show_songs.inc.php index 527cc076..6eddb088 100644 --- a/templates/show_songs.inc.php +++ b/templates/show_songs.inc.php @@ -65,12 +65,12 @@ $web_path = Config::get('web_path'); - - - + id . '&type=song&sort=title', T_('Song Title'),'sort_song_title_bottom'); ?> + id . '&type=song&sort=artist', T_('Artist'),'sort_song_artist_bottom'); ?> + id . '&type=song&sort=album', T_('Album'),'sort_song_album_bottom'); ?> - - + id . '&type=song&sort=track', T_('Track'),'sort_song_track_bottom'); ?> + id . '&type=song&sort=time', T_('Time'),'sort_song_time_bottom'); ?> diff --git a/templates/show_users.inc.php b/templates/show_users.inc.php index 55ede6fd..ce988b64 100644 --- a/templates/show_users.inc.php +++ b/templates/show_users.inc.php @@ -37,9 +37,9 @@ $web_path = Config::get('web_path'); - ( ) - - + id . '&type=user&sort=fullname', T_('Fullname'),'users_sort_fullname'); ?>( ) + id . '&type=user&sort=last_seen', T_('Last Seen'),'users_sort_lastseen'); ?> + id . '&type=user&sort=create_date', T_('Registration Date'),'users_sort_createdate'); ?> @@ -59,9 +59,9 @@ foreach ($object_ids as $user_id) { - ( ) - - + id . '&type=user&sort=fullname', T_('Fullname'),'users_sort_fullname1'); ?>( ) + id . '&type=user&sort=last_seen', T_('Last Seen'),'users_sort_lastseen1'); ?> + id . '&type=user&sort=create_date', T_('Registration Date'),'users_sort_createdate1'); ?> diff --git a/templates/show_videos.inc.php b/templates/show_videos.inc.php index 7b4f6c75..61715e2f 100644 --- a/templates/show_videos.inc.php +++ b/templates/show_videos.inc.php @@ -35,10 +35,10 @@ $web_path = Config::get('web_path'); - - - - + id . '&type=video&sort=title', T_('Title'),'sort_video_title'); ?> + id . '&type=video&sort=codec', T_('Codec'),'sort_video_codec'); ?> + id . '&type=video&sort=resolution', T_('Resolution'),'sort_video_rez'); ?> + id . '&type=video&sort=length', T_('Time'),'sort_video_length'); ?> @@ -59,10 +59,10 @@ foreach ($object_ids as $video_id) { - - - - + id . '&type=video&sort=title', T_('Title'),'sort_video_title'); ?> + id . '&type=video&sort=codec', T_('Codec'),'sort_video_codec'); ?> + id . '&type=video&sort=resolution', T_('Resolution'),'sort_video_rez'); ?> + id . '&type=video&sort=length', T_('Time'),'sort_video_length'); ?> -- cgit