Sha256: 13cbd2bdf26829b28a5605be0aaf3068e8df8fd1356b093d1cea21990088f2f4
Contents?: true
Size: 1.46 KB
Versions: 56
Compression:
Stored size: 1.46 KB
Contents
= stylesheet_link_tag 'admin/assets' = render_region :top - render_region :main do |main| - main.edit_header do %h1= t("clipped_extension.asset_edit_title") - main.edit_form do - form_for :asset, :url => admin_asset_path(@asset), :html => { :method => "put", :multipart => true } do |f| .form_area = render :partial => "form", :locals => { :f => f } %div.content %fieldset %label.filename = "#{t("clipped_extension.filename")}: #{@asset.asset_file_name unless @asset.new_record?}" %p.asset - display_size = TrustyCms::config['assets.display_size'] || 'normal' = image_tag @asset.thumbnail(display_size.to_sym), :class => 'preview' = updated_stamp @asset %fieldset.upload %label.upload = t("clipped_extension.replace_file") = f.file_field :asset, :class => "", :style => "width: 100%" .buttons = save_model_button(@asset) = save_model_and_continue_editing_button(@asset) = t("or") = link_to t("cancel"), admin_assets_path - main.edit_regenerate do - if current_user.admin? or current_user.designer? %fieldset= t("clipped_extension.regenerate_thumbnails") - form_tag refresh_admin_asset_path(@asset), :method => :put do %p.asset_buttons %input.button{ :type => "submit", :value => t("clipped_extension.regenerate") }
Version data entries
56 entries across 56 versions & 2 rubygems