2023-03-03 14:19:20 -05:00
|
|
|
<div id="video-header" class="row">
|
2023-03-03 15:49:09 -05:00
|
|
|
<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 %>
|
2023-03-03 14:19:20 -05:00
|
|
|
<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>
|
2023-03-03 14:19:20 -05:00
|
|
|
|
2023-03-03 15:49:09 -05:00
|
|
|
<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 %>
|
2023-03-03 15:49:09 -05:00
|
|
|
</div>
|
2023-03-13 22:23:34 -04:00
|
|
|
<div class="video-active clickable-attr" data-attribute="starred" data-type="video">
|
|
|
|
<p>Active: <span><%= video.starred ? 'True' : 'False' %></span></p>
|
|
|
|
</div>
|
2023-03-03 15:49:09 -05:00
|
|
|
<div class="video-channel">
|
2023-03-04 08:47:07 -05:00
|
|
|
<p>Channel: <a href="/channel/<%= video.channel.id %>"><span><%= video.channel.name %></span></a></p>
|
2023-03-03 15:49:09 -05:00
|
|
|
</div>
|
2023-03-13 22:23:34 -04:00
|
|
|
<div class="video-serial clickable-attr" data-attribute="serial" data-type="video">
|
2023-03-03 15:49:09 -05:00
|
|
|
<p>Serial: <span><%= serialize(video.serial) %></span></p>
|
|
|
|
</div>
|
2023-03-13 22:23:34 -04:00
|
|
|
<div class="video-status clickable-attr" data-attribute="status" data-type="video">
|
2023-03-06 17:59:58 -05:00
|
|
|
<p>Status: <span><%= video.status.capitalize() %></span></p>
|
|
|
|
</div>
|
2023-03-04 11:37:53 -05:00
|
|
|
<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>
|
2023-03-03 14:19:20 -05:00
|
|
|
</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">
|
2023-03-18 11:35:52 -04:00
|
|
|
<%= video.parse_script() %>
|
2023-03-04 21:26:36 -05:00
|
|
|
</div>
|
2023-03-04 11:14:54 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-06 17:59:58 -05:00
|
|
|
|
|
|
|
<input type="hidden" id="video-id" value="<%= video.id %>">
|