TrackSetTable.razor 914 B

1234567891011121314151617181920212223242526
  1. @inject ApiClient ApiClient
  2. <table class="table">
  3. <thead>
  4. <tr>
  5. <th scope="col">
  6. <a href="@TrackSet?.M3U8Path" target="@FnzConst.PlaylistPageTarget" onclick="return BlockDownloadAndOpenHtmlPage(this)">Play all</a>
  7. </th>
  8. <th scope="col">@TrackSet?.TotalDuration.SecondToDur()</th>
  9. <th scope="col">@TrackSet?.TotalBytes.BytesToFileSize()</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. @foreach (var t in (TrackSet?.Tracks).KeepNoEmpty())
  14. {
  15. <tr>
  16. <th scope="row">
  17. <a href="@t?.Path" target="@FnzConst.PlaylistPageTarget">@((t?.Tag?.Title).NullOrEmptyEscape(t?.Name))</a>
  18. </th>
  19. <td>@(t?.Tag?.Duration.SecondToDur() ?? "?")</td>
  20. <td>@(t?.Tag?.Length.BytesToFileSize() ?? "?")</td>
  21. </tr>
  22. }
  23. </tbody>
  24. </table>