<%= t('videos.title') %> | <%= t('videos.description') %> | <%if is_manager? %><%= t('videos.edit') %> | <%= t('videos.delete') %> | <% end %>|
---|---|---|---|---|
<%= video_display.embed_html(400, 300).html_safe %> | <%= video.title %> | <% @client_videos = @client.videos_by(:user => 'ntuprs', :per_page => 5) %><% @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 %> |
<%if is_manager? %>
<%= 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?) %> | <%end%>