<%if is_manager? %> <% end %> <% @videos.each do |video| %> <% video_display = UnvlogIt.new(video.url)%> <% @client_videos = @client.videos_by(:user => 'ntuprs', :per_page => 5) %> <%if is_manager? %> <%end%> <% end %>
<%= t('videos.title') %> <%= t('videos.description') %><%= t('videos.edit') %> <%= t('videos.delete') %>
<%= video_display.embed_html(400, 300).html_safe %> <%= video.title %><% @client_videos.videos.each do |v| %> <% @video = v.video_id.split(/tag:youtube.com,2008:video:+/).last %><% vd = UnvlogIt.new("https://www.youtube.com/watch?v=#{@video}")%><%= vd.embed_html(200, 150).html_safe %>


<% end %>
<%= link_to 'Edit', edit_panel_videos_back_end_video_path(video) %> <%= link_to 'Destroy', panel_videos_back_end_video_path(video), method: :delete , :confirm => t(:sure?) %>
<%if is_manager? %> <%= link_to 'New', new_panel_videos_back_end_video_path, :class => "btn btn-primary", :id=>"create_event_btn", :ref=>"add-btn" %> <% end %>