video_channel/app/views/panel/video/back_end/channel_videos/index.html.erb

30 lines
1.1 KiB
Plaintext

<br/>
<h3>YouTube Channel</h3>
<table class="table main-list">
<thead>
<tr>
<th class="span4"><%= t('channel_name') %></th>
<th class="span4"><%= t('videos.show') %></th>
<%if is_manager? %>
<th class="span4"><%= t('videos.edit') %></th>
<th class="span4"><%= t('videos.delete') %></th>
<% end %>
</tr>
</thead>
<tbody id="tbody_locations" class="sort-holder">
<% @channel_videos.each do |video| %>
<tr class="with_action">
<td><%= video.channel_name %></td>
<td><%= link_to 'Show Channel Videos', panel_video_back_end_channel_video_path(video) %></td>
<%if is_manager? %>
<td><%= link_to 'Edit', edit_panel_video_back_end_channel_video_path(video) %></td>
<td><%= link_to 'Delete Channel', panel_video_back_end_channel_video_path(video), method: :delete , :confirm => t(:sure?) %></td>
<% end %>
</tr>
<% end %>
</tbody>
</table>
<%if is_manager? %>
<%= link_to 'New', new_panel_video_back_end_channel_video_path, :class => "btn btn-primary pull-right", :id=>"create_event_btn", :ref=>"add-btn" %>
<% end %>