add ability to change recording visibility

This commit is contained in:
Josh
2018-06-18 14:25:30 -04:00
parent b2b2c641da
commit 5d5cfd1b7d
5 changed files with 58 additions and 11 deletions

View File

@ -15,7 +15,9 @@
<th class="text-left">Users</th>
<th class="text-left">Visibility</th>
<th>Formats</th>
<th class="text-center"><i class="icon-settings"></i></th>
<% unless only_public %>
<th class="text-center"><i class="icon-settings"></i></th>
<% end %>
</tr>
</thead>
<tbody>
@ -27,7 +29,11 @@
</tr>
<% else %>
<% recordings.each do |recording| %>
<%= render "shared/components/recording_row", recording: recording %>
<% if only_public %>
<%= render "shared/components/public_recording_row", recording: recording %>
<% else %>
<%= render "shared/components/recording_row", recording: recording %>
<% end %>
<% end %>
<% end %>
</tbody>