stage-manager/views/video/view.erb

50 lines
2.1 KiB
Plaintext
Raw Normal View History

<div id="video-header" class="row">
<div class="eight columns">
2023-03-07 00:07:29 -05:00
<h1 class="video-name"><%= video.name %></h1><%= '<h4>(archived)</h4>' if video.archived %>
<h4 class="video-created">Item added at: <%= date_format(video.created_at) %></h4>
<% if video.updated_at %>
<h4 class="video-updated">Last updated at: <%= date_format(video.updated_at) %></h4>
<% end %>
2023-03-07 10:53:18 -05:00
<h4 class="video-path"><%= video.directory_path %></h4>
<p class="video-description"><%= video.description %></p>
</div>
<div id="sidebar" class="four columns">
<div class="actions-bar">
2023-03-07 00:07:29 -05:00
<span><a href="/video/<%= video.id %>/edit">Edit <i class="fa-solid fa-pen-to-square"></i></a></span><% unless video.archived %><span><a href="/video/<%= video.id %>/archive">Archive <i class="fa-solid fa-box-archive"></i></a></span><% else %><span><a href="/video/<%= video.id %>/unarchive">Unarchive <i class="fa-solid fa-box-archive"></i></a></span>
<% end %>
</div>
<div class="video-active clickable-attr" data-attribute="starred" data-type="video">
<p>Active: <span><%= video.starred ? 'True' : 'False' %></span></p>
</div>
<div class="video-channel">
<p>Channel: <a href="/channel/<%= video.channel.id %>"><span><%= video.channel.name %></span></a></p>
</div>
<div class="video-serial clickable-attr" data-attribute="serial" data-type="video">
<p>Serial: <span><%= serialize(video.serial) %></span></p>
</div>
<div class="video-status clickable-attr" data-attribute="status" data-type="video">
<p>Status: <span><%= video.status.capitalize() %></span></p>
</div>
<div class="script-controls">
<span><a href="/video/<%= video.id %>/script">View script <i class="fa-solid fa-scroll"></i></a></span><span>
<a href="/video/<%= video.id %>/edit/script">Edit script <i class="fa-solid fa-pen-to-square"></i></a></span>
</div>
</div>
</div>
2023-03-04 11:14:54 -05:00
<div id="video-script" class="row">
<div class="twelve columns">
2023-03-04 21:26:36 -05:00
<h2>Video script</h2>
2023-03-04 11:14:54 -05:00
<hr>
2023-03-04 21:26:36 -05:00
<div class="script">
<%= video.parse_script() %>
2023-03-04 21:26:36 -05:00
</div>
2023-03-04 11:14:54 -05:00
</div>
</div>
<input type="hidden" id="video-id" value="<%= video.id %>">