%= back_link_to admin_question_path(@option.question) %>
<%= t("admin.answers.videos.index.title") %>
<% if can?(:create, Poll::Question::Option.new(question: @option.question)) %>
<%= link_to t("admin.answers.videos.index.add_video"),
new_admin_option_video_path(@option),
class: "button success float-right" %>
<% else %>
<%= t("admin.questions.no_edit") %>
<% end %>
| <%= t("admin.answers.videos.index.video_title") %> |
<%= t("admin.answers.videos.index.video_url") %> |
<%= t("admin.actions.actions") %> |
<% @videos.each do |video| %>
| <%= video.title %> |
<%= link_to video.url, video.url %> |
<%= render Admin::Poll::Questions::Options::Videos::TableActionsComponent.new(video) %>
|
<% end %>