Skip to content

Commit

Permalink
pending state on track
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 13, 2023
1 parent b98e071 commit 3bc52f5
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions app/views/tracks/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div>
<div class="flex flex-col sm:flex-row mb-6">
<div class="flex-grow items-center text-white">
<% if true #@track.processed? %>
<% if @track.processed? %>
<%= image_tag @track.cover_url(:medium), class: "hidden h-32 w-full object-cover lg:h-48" %>

<div data-controller="trackplayer"
Expand Down Expand Up @@ -112,8 +112,30 @@

<% else %>

<!-- Pending track state message omitted for brevity -->
<div class="flex items-center">
<span class="text-2xl text-center p-5 space-x-2 flex items-center">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
/>
</svg>
<p>
<%= gettext("Hold on, this track is in %{state} state",
state: @track.state || "pending"
) %>
</p>
</span>
</div>

<% end %>
</div>

Expand Down

0 comments on commit 3bc52f5

Please sign in to comment.