diff --git a/app/views/albums/show.html.erb b/app/views/albums/show.html.erb index cd1aa43b..1f4dadcf 100644 --- a/app/views/albums/show.html.erb +++ b/app/views/albums/show.html.erb @@ -59,7 +59,11 @@
<%= song.name %>
<% if @album.artist.various? %> - <%= link_to song.artist.name, artist_path(song.artist), class: "c-list__item__subtext" %> + <% if native_app? %> + <%= song.artist.name %> + <% else %> + <%= link_to song.artist.name, artist_path(song.artist), class: "c-list__item__subtext" %> + <% end %> <% end %>
<%= format_duration(song.duration) %>
@@ -71,6 +75,11 @@ <%= icon_tag "more-vertical", size: "small", title: t("label.more") %>
+ <%= link_to( + t("label.go_to_artist"), + artist_path(song.artist), + class: "c-dropdown__item" + ) %> <%= link_to( t("label.add_to_playlist"), dialog_playlists_path(song_id: song.id, referer_url: current_url), diff --git a/app/views/playlists/songs/_song.html.erb b/app/views/playlists/songs/_song.html.erb index ee8f4714..4f0e44e2 100644 --- a/app/views/playlists/songs/_song.html.erb +++ b/app/views/playlists/songs/_song.html.erb @@ -19,7 +19,11 @@
<%= song.name %> - <%= song.artist.name %> + <% if native_app? %> + <%= song.artist.name %> + <% else %> + <%= link_to song.artist.name, artist_path(song.artist), class: "c-list__item__subtext" %> + <% end %>
<%= format_duration(song.duration) %>
@@ -27,6 +31,11 @@
<%= icon_tag "more-vertical", size: "small", title: t("label.more") %>
+ <%= link_to( + t("label.go_to_artist"), + artist_path(song.artist), + class: "c-dropdown__item" + ) %> <%= link_to( t("label.add_to_playlist"), dialog_playlists_path(song_id: song.id, referer_url: current_url), diff --git a/config/locales/en.yml b/config/locales/en.yml index 68f7e8e3..4afea2e3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -22,7 +22,7 @@ en: create_playlist: 'Create Playlist' edit_playlist: 'Edit Playlist' no_items: 'No Items' - add_to_playlist: 'Add To Playlist' + add_to_playlist: 'Add to Playlist' update_profile: 'Update Profile' manage_users: 'Manage Users' create_user: 'Create User' @@ -55,6 +55,7 @@ en: close: 'Close' no_search_results: "No search results for \"%{query}\"" search_results_for: "Search results for \"%{query}\"" + go_to_artist: 'Go to Artist' button: login: 'Login' diff --git a/test/system/album_test.rb b/test/system/album_test.rb index 79e23592..f1f49bd0 100644 --- a/test/system/album_test.rb +++ b/test/system/album_test.rb @@ -71,7 +71,7 @@ class AlbumSystemTest < ApplicationSystemTestCase visit album_url(@album) first(:test_id, "album_song_menu").click - click_on "Add To Playlist" + click_on "Add to Playlist" find(:test_id, "dialog_playlist", text: playlist_name).click # assert the song added to the playlist diff --git a/test/system/current_playlist_test.rb b/test/system/current_playlist_test.rb index 07b30c7d..5c2d423a 100644 --- a/test/system/current_playlist_test.rb +++ b/test/system/current_playlist_test.rb @@ -62,7 +62,7 @@ class CurrentPlaylistSystemTest < ApplicationSystemTestCase assert_difference -> { playlist.songs.count } do first(:test_id, "current_playlist_song_menu").click - click_on "Add To Playlist" + click_on "Add to Playlist" find(:test_id, "dialog_playlist", text: playlist_name).click end end diff --git a/test/system/favorite_playlist_test.rb b/test/system/favorite_playlist_test.rb index 85e6ddf2..cc9fe29c 100644 --- a/test/system/favorite_playlist_test.rb +++ b/test/system/favorite_playlist_test.rb @@ -69,7 +69,7 @@ class FavoritePlaylistSystemTest < ApplicationSystemTestCase assert_difference -> { playlist.songs.count } do first(:test_id, "playlist_song_menu").click - click_on "Add To Playlist" + click_on "Add to Playlist" find(:test_id, "dialog_playlist", text: playlist_name).click end end diff --git a/test/system/playlist_test.rb b/test/system/playlist_test.rb index ee9a196c..16f73f7c 100644 --- a/test/system/playlist_test.rb +++ b/test/system/playlist_test.rb @@ -90,7 +90,7 @@ class PlaylistSystemTest < ApplicationSystemTestCase assert_difference -> { playlist.songs.count } do first(:test_id, "playlist_song_menu").click - click_on "Add To Playlist" + click_on "Add to Playlist" find(:test_id, "dialog_playlist", text: playlist_name).click end end diff --git a/test/system/songs_test.rb b/test/system/songs_test.rb index 74cc3e4f..a7e35d04 100644 --- a/test/system/songs_test.rb +++ b/test/system/songs_test.rb @@ -52,7 +52,7 @@ class SongsSystemTest < ApplicationSystemTestCase assert_difference -> { playlist.songs.count } do first(:test_id, "song_menu").click - click_on "Add To Playlist" + click_on "Add to Playlist" find(:test_id, "dialog_playlist", text: playlist_name).click end end