<% content_for :header_tags do %> <%= stylesheet_link_tag '/plugin_assets/chili_videos/stylesheets/videos' %> <% end %>
<%= link_to(l(:new_video_label), new_project_video_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:add_video, nil, :global => true) %> <%= link_to(l(:edit_video_label), edit_project_video_path(@project), :class => 'icon icon-edit video-edit') if User.current.allowed_to?(:edit_video, nil, :global => true) %> <%= link_to(l(:delete_video_label), project_video_path(@project), :class => 'icon icon-del video-del', :confirm => l(:confirm_video_deletion), :method => :delete) if User.current.allowed_to?(:delete_video, nil, :global => true) %>

<%= @video.title.blank? ? l(:default_video_title) : @video.title %>

<%- if gravatar_enabled? %> <%= link_to(gravatar(@video.user.mail), user_path(@video.user), :title => "Uploaded by #{@video.user.name}") %> <%- end %>
Length:
<%= @video.length %>
Description:
<%= @video.description.blank? ? "(none provided)" : @video.description %>
<%- if !gravatar_enabled? %>
Uploaded by:
<%= link_to @video.user, user_path(@video.user) %>
<%- end %> <%- if @video.version %>
Release:
<%= link_to @video.version, project_version_path(@project, @video.version) %>
<%- end %>
<%= video_embed_code(@video, :large) %>