@page "/track/{EntryKey}" @using DeepDrftPublic.Client.Controls @(ViewModel.Track?.TrackName ?? "Track") - DeepDrft @if (ViewModel.IsLoading) {
} else if (ViewModel.NotFound) {
Track not found. This track may have been moved or removed.
All tracks
} else if (ViewModel.Track is not null) { var track = ViewModel.Track; var isThisTrackPlaying = PlayerService.CurrentTrack?.Id == track.Id && PlayerService.IsPlaying && !PlayerService.IsPaused; var hasMeta = track.Album is not null || track.Genre is not null || track.ReleaseDate is not null;
← All tracks
@track.TrackName @track.Artist
@if (!string.IsNullOrEmpty(track.ImagePath)) { } else { }
@if (hasMeta) {
@if (track.Album is not null) {
Album @track.Album
} @if (track.Genre is not null) {
@track.Genre
} @if (track.ReleaseDate is not null) {
Released @track.ReleaseDate.Value.ToString("MMMM yyyy")
}
}
}