Sha256: 9be93ef8e2d1eb6ce68b6a6fdfafa5d83a7eadf48dfc991fbe1771d6a813ffa3

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

.dialog-search
  = "#{I18n.t("humpyard_form.titles.show", :model => "#{Humpyard::Asset.model_name.human}#{@asset.title.blank? ? '' : " '#{@asset.title}'"}")}"
.dialog-pane
  %table.data_table
    %tr
      %td
        = Humpyard::Asset.human_attribute_name :content_type
      %td
        = @asset.content_type
    - unless @asset.width.blank?
      %tr
        %td
          = Humpyard::Asset.human_attribute_name :width
        %td
          = @asset.width
    - unless @asset.height.blank?
      %tr
        %td
          = Humpyard::Asset.human_attribute_name :height
        %td
          = @asset.height
    %tr
      %td
        = Humpyard::Asset.human_attribute_name :url
      %td
        = number_to_human_size @asset.url
    - custom_partial_path = "/humpyard/assets/#{@asset.class.name.underscore.pluralize.gsub(/^humpyard\/assets/, '')}/info_asset"
    - if template_exists? custom_partial_path , nil, true
      = render :partial => custom_partial_path, :locals => {:asset => @asset}
  = render :partial => "/humpyard/assets/show_asset", :locals => {:asset => @asset, :element => nil}

  
.dialog-buttons.humpyard-form-buttons
  - if can? :destroy, @asset.asset
    = link_to "#{I18n.t("humpyard_form.actions.destroy", :model => "#{Humpyard::Asset.model_name.human}#{@asset.title.blank? ? '' : " '#{@asset.title}'"}")}", humpyard_asset_path(@asset), :'data-icon' => "ui-icon-trash", :confirm => "Are you sure?", :method => :delete, :remote => true
  - if can? :update, @asset.asset
    = link_to "#{I18n.t("humpyard_form.actions.edit", :model => "#{Humpyard::Asset.model_name.human}#{@asset.title.blank? ? '' : " '#{@asset.title}'"}")}", edit_humpyard_asset_path(@asset), :'data-icon' => "ui-icon-pencil", :'data-dialog-link' => true

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 app/views/humpyard/assets/_show.html.haml