stage-manager/views/index.erb

54 lines
1.3 KiB
Plaintext

<div class="row">
<div class="twelve columns">
<h1 id="site-header">Stage Manager Dashboard</h1>
</div>
</div>
<hr>
<div class="row">
<div class="twelve columns">
<table class="u-full-width">
<thead>
<tr>
<th>Video name</th>
<th>Video serial</th>
<th>Video channel</th>
<th>Last updated</th>
</tr>
</thead>
<tbody>
<% videos.each do |v| %>
<tr>
<td><a href="/video/<%= v.id %>"><%= v.name %></a></td>
<td><%= serialize(v.serial) %></td>
<td><%= v.channel.name %></td>
<td><%= date_format(v.updated_at) %></td>
</tr>
<% end %>
</tbody>
</table>
<table class="u-full-width">
<thead>
<tr>
<th>Channel name</th>
<th>Open projects</th>
<th>Total projects</th>
<th>Last updated</th>
</tr>
</thead>
<tbody>
<% channels.each do |c| %>
<tr>
<td><a href="/channel/<%= c.id %>"><%= c.name %></a></td>
<td><%= nullable(c.openProjects) %></td>
<td><%= nullable(c.videos.length) %></td>
<td><%= date_format(c.updated_at) %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>