- @window_title = "Asset Library" - prev_page = "" - prev_page = " > " + link_to(params[:previous_page_title].titleize, params[:return_url]) unless params[:return_url].blank? || params[:previous_page_title].blank? - breadcrumbs_val = "?previous_page_title=#{params[:previous_page_title]}&return_url=#{params[:return_url]}" - @page_title = "#{link_to "Asset Library", admin_asset_category_path(:category => 'all' , :page => 1 )} #{prev_page} > #{@asset.name}" .span9 .row-fluid = render :partial => "/gluttonberg/admin/asset_library/shared/sidebar" .span9 .page-header %h1 = @page_title.html_safe .span10 .tabbable %ul.nav.nav-tabs %li.active %a{:href => "#asset", "data-toggle" => "tab" } Asset %li %a{:href => "#meta", "data-toggle" => "tab" } Metadata .tab-content .tab-pane.active#asset .pad .row-fluid .span6 %div#preview - if @asset.category == 'image' %img{:src => @asset.thumb_small_url } - elsif @asset.category == 'video' - unless @asset.poster_image.blank? %img{:src => @asset.poster_image.thumb_small_url } %br - if can? :edit , @asset %a{:href=>"#{edit_admin_asset_url(@asset)+breadcrumbs_val}", :class=>"btn"} Edit %a{:href=>"#{crop_admin_asset_url(@asset)}", :class=>"btn"} Crop - if can? :destroy , @asset %a{:href=>"#{delete_admin_asset_url(@asset)}", :class=>"btn btn-danger"} Delete .span4 %div.pageBlock - unless @asset.description.blank? %p#description= @asset.description %legend Asset URL %p.publicpath - if @asset.category == 'audio' .sm2-inline-list .ui360 %a{:href => "#{asset_url(@asset)}", :target => "_blank" , :class => ""} = @asset.title %br %a{:href => "#{asset_url(@asset)}", :target => "_blank" } = asset_url(@asset) %p#public-path-note This address can be used to link to this asset. %br/ For example it could be pasted into an email. - unless @asset.asset_collections.blank? %legend Collections %p - for collection in @asset.asset_collections = h(collection.name) %br .tab-pane#meta .pad .row-fluid %legend Asset Details .meta_body.span8 %dl - unless @asset.alt.blank? %dt Alt %dd= @asset.alt %dt Category %dd= @asset.category.capitalize %dt Type %dd= @asset.asset_type.name %dt Asset ID %dd= @asset.id %dt File size %dd= @asset.formatted_file_size %dt File name %dd= @asset.file_name %dt Mime type %dd= @asset.mime_type - unless @asset.width.blank? %dt Width %dd= @asset.width - unless @asset.height.blank? %dt Height %dd= @asset.height - unless @asset.audio_asset_attribute.blank? - unless @asset.audio_asset_attribute.length.blank? %dt Length %dd= ( (@asset.audio_asset_attribute.length / 60.0).round(2) ).to_s + " Minutes" - unless @asset.audio_asset_attribute.genre.blank? %dt Genre %dd= h(@asset.audio_asset_attribute.genre) - unless @asset.audio_asset_attribute.title.blank? %dt Title %dd= h(@asset.audio_asset_attribute.title) - unless @asset.audio_asset_attribute.artist.blank? %dt Artist %dd= h(@asset.audio_asset_attribute.artist) - unless @asset.audio_asset_attribute.album.blank? %dt Album %dd= h(@asset.audio_asset_attribute.album) - unless @asset.audio_asset_attribute.tracknum.blank? %dt Tracknum %dd= h(@asset.audio_asset_attribute.tracknum) .clear -#%legend Updates %dl %dt Created %dd= date_format @asset.created_at %dt Updated %dd= date_format @asset.updated_at