Files
old-holivud2/app/views/broadcasts/_broadcast.html.erb
Senad Uka 8214ba9e67 Changes
2020-08-03 21:52:04 +00:00

31 lines
1.4 KiB
Plaintext

<tr>
<td data-behavior="select_broadcast"><%= check_box_tag "broadcast_ids[]", broadcast.id, false %></td>
<td>
<%= broadcast.name %>
</td>
<td>
<%= broadcast.shoot_location_time_zone %>
</td>
<td>
<%= broadcast.status.titleize %>
</td>
<td>
<%= time_ago_in_words(broadcast.created_at) %> ago
</td>
<td class="text-right">
<div class="btn-group">
<%= button_tag t(".actions.manage"), class: "btn btn-light btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
<div class="dropdown-menu dropdown-menu-right">
<%= link_to fa_icon("link fw", text: "Copy Stream URL"), broadcast.stream_server_url, class: "dropdown-item", data: { behavior: "clipboard" } %>
<%= link_to fa_icon("key fw", text: "Copy Stream Key"), broadcast.stream_server_key, class: "dropdown-item", data: { behavior: "clipboard" } %>
<% if policy(broadcast).show? %>
<%= link_to fa_icon("file-video-o fw", text: "View"), [broadcast.project, broadcast], class: "dropdown-item", target: '_blank' %>
<% end %>
<% if policy(broadcast).destroy? %>
<%= link_to fa_icon("trash fw", text: "Delete"), [broadcast.project, broadcast], class: "dropdown-item", method: :delete, data: { confirm: "Are you sure?" } %>
<% end %>
</div>
</div>
</td>
</tr>