public ArtistView(ViewArtist artist) : base(artist.Name, H1(Text(string.Format("Artist : {0}", artist.Name))), P(Label("name", "Name"), Text(artist.Name)), H2(Text("Albuns")), Ul( artist.Albuns.Select(alb => Li(A(ResolveUri.ForAlbum(alb.Key), alb.Value))).ToArray() ), Ul( Li(A(ResolveUri.ForPlaylist(), "Playlists")), Li(A(ResolveUri.ForSearch(), "Search")) ) ) { }
public TrackView(ViewTrack track) : base(track.Name, H1(Text(string.Format("Track : {0}", track.Name))), P(Label("name", "Name"), Text(track.Name)), P(Label("duration", "Duration"), Text(track.Duration)), P(Label("album", "Album"), Text(track.Album.Value), A(ResolveUri.ForAlbum(track.Album.Key), "View")), H2(Text("Artists")), Ul( track.Artists.Select(art => Li(A(ResolveUri.ForArtist(art.Key), art.Value))).ToArray() ), TrackPlayer(track.Href), Ul( Li(A(ResolveUri.ForAddTrack(track.Href), "Adicionar")), Li(A(ResolveUri.ForPlaylist(), "Playlists")), Li(A(ResolveUri.ForSearch(), "Search")) ) ) { }