From df8c858433c7a9f69a636373c4ed3cd72bf8d1f1 Mon Sep 17 00:00:00 2001
From: Brandt Lareau Loading Disk this might takes a while. Page will reload once ready. Fell free to refresh the page. Sorry no Disk is currently loaded or could be detected. Refresh page if your seeing this warning but know a disk is present.
-
-
+<% elsif LoadDiskWorker.job.pending? %>
+
-
-
-
- <% disks.each do |disk| %>
- <% disk.disk_titles.sort_by { |d| movie.runtime_range.include?(d.duration) ? 0 : 1 }.each do |disk_title| %>
- <% text_class = 'text-primary-emphasis' if movie.runtime_range.include?(disk_title.duration) %>
- #
- Name
- Duration
- Size
-
-
-
+<% if disks.any? %>
+ <%= disk_title.id %>
- <%= disk_title.name %>
- <%= distance_of_time_in_words(disk_title.duration.seconds) %>
-
- <%= number_to_human_size(disk_title.size, precision: 3) %>
- <% if disk_title.size >= free_disk_space %>
- WARNING: Not enough space available to rip need another <%= number_to_human_size(disk_title.size - free_disk_space, precision: 3) %>
- <% end %>
-
-
- <%= link_to 'Rip', video_disk_title_path(movie, disk_title), data: { turbo_method: :patch } %>
-
-
+
+
+
+
+
+
+
+ <% disks.each do |disk| %>
+ <% disk.disk_titles.sort_by { |d| movie.runtime_range.include?(d.duration) ? 0 : 1 }.each do |disk_title| %>
+ <% text_class = 'text-primary-emphasis' if movie.runtime_range.include?(disk_title.duration) %>
+ <% text_class = 'text-success-emphasis' if movie.disk_title&.name == disk_title.name %>
+ #
+ Name
+ Duration (<%= distance_of_time_in_words @movie.movie_runtime.seconds %>)
+ Size
+
+
+
+ <% end %>
<% end %>
-
- <% end %>
-
-<%= disk_title.id %>
+ <%= disk_title.name %>
+ <%= distance_of_time_in_words(disk_title.duration.seconds) %>
+
+ <%= number_to_human_size(disk_title.size, precision: 3) %>
+ <% if disk_title.size >= free_disk_space %>
+ WARNING: Not enough space available to rip need another <%= number_to_human_size(disk_title.size - free_disk_space, precision: 3) %>
+ <% end %>
+
+
+ <%= link_to 'Rip', video_disk_title_path(movie, disk_title), data: { turbo_method: :patch } %>
+
+
Blue Means the disk title is within the runtime range of the movie.
+Gream Means the disk has been ripped before.
+