Skip to content
Browse files

Renamed 'filename' to 'name' in the admin views for text_assets.

  • Loading branch information...
1 parent 739b53c commit c6cdcf84892b319b417dae3acbd84b6fe9c77c48 @nelstrom committed
View
6 app/views/admin/text_asset/edit.html.haml
@@ -12,8 +12,8 @@
- render_region :form do |form|
- form.edit_title do
%p.title
- %label{:for=>"#{model_name}_filename"} Filename
- = text_field model_name, "filename", :class => 'textbox', :maxlength => 100
+ %label{:for=>"#{model_name}_name"} Name
+ = text_field model_name, "name", :class => 'textbox', :maxlength => 100
- form.edit_content do
%p.content
%label{:for=>"#{model_name}_content"} Body
@@ -28,7 +28,7 @@
- form.edit_timestamp do
= updated_stamp @text_asset
- = javascript_tag %{$("#{model_name}_filename").activate()}
+ = javascript_tag %{$("#{model_name}_name").activate()}
- render_region :form_bottom do |form_bottom|
- form_bottom.edit_buttons do
View
2 app/views/admin/text_asset/index.html.haml
@@ -40,7 +40,7 @@
-# this next class is dumb but Radiant hard coded for the Snippet class so we'll just piggyback on that...
%td.snippet
= image(model_name, :alt => "#{model_name}-icon", :title => text_asset.url)
- %span= link_to(text_asset.filename, send("#{model_name}_edit_url", :id => text_asset), :title => text_asset.url)
+ %span= link_to(text_asset.name, send("#{model_name}_edit_url", :id => text_asset), :title => text_asset.url)
%td.remove
= link_to image('remove', :alt => "Remove #{proper_model_name}"), send("#{model_name}_remove_url", :id => text_asset)
- else
View
2 app/views/admin/text_asset/remove.html.haml
@@ -11,7 +11,7 @@
-# this next class is dumb but Radiant hard coded for the Snippet class so we'll just piggyback on that...
%td.snippet
= image(model_name, :class => "icon", :alt => "#{model_name}-icon", :title => @text_asset.url)
- %span.title= @text_asset.filename
+ %span.title= @text_asset.name
- form_tag do
%p.buttons

0 comments on commit c6cdcf8

Please sign in to comment.
Something went wrong with that request. Please try again.