2010-07-13 00:46:17 +00:00
|
|
|
- title t('.title', :file => @theme_asset.source_filename)
|
2010-05-11 21:38:52 +00:00
|
|
|
|
|
|
|
- content_for :submenu do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render_cell 'locomotive/settings_menu', :show
|
2010-05-11 21:38:52 +00:00
|
|
|
|
2011-11-08 00:11:15 +00:00
|
|
|
- if can?(manage, Locomotive::ThemeAsset)
|
2011-06-26 23:02:48 +00:00
|
|
|
- content_for :buttons do
|
2011-10-31 23:44:23 +00:00
|
|
|
= admin_button_tag t('locomotive.theme_assets.index.new'), new_theme_asset_url, :class => 'new'
|
2011-06-26 23:02:48 +00:00
|
|
|
|
|
|
|
%p
|
|
|
|
- if %w(image javascript stylesheet).include?(@theme_asset.content_type.to_s)
|
|
|
|
!= t(".help_#{@theme_asset.content_type}", :path => @theme_asset.local_path(true), :width => @theme_asset.width, :height => @theme_asset.height)
|
|
|
|
|
|
|
|
!= t('.help', :url => @theme_asset.source.url)
|
2010-05-11 21:38:52 +00:00
|
|
|
|
|
|
|
|
2011-10-31 23:44:23 +00:00
|
|
|
= semantic_form_for @theme_asset, :url => theme_asset_url(@theme_asset), :html => { :multipart => true, :class => 'save-with-shortcut' } do |form|
|
2010-05-11 21:38:52 +00:00
|
|
|
|
|
|
|
= render 'form', :f => form
|
|
|
|
|
2011-11-08 00:11:15 +00:00
|
|
|
= render 'locomotive/shared/form_actions', :back_url => theme_assets_url, :button_label => :update
|