public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Added ability to edit asset title in admin interface, and added title to
asset attributes in liquid
James Smith (author)
Thu May 08 10:50:32 -0700 2008
commit  0ca6f9a34bc9e23cd1f882426d29b887a59b6be9
tree    081d3688967b32533a3e020a7025f8b4ee44e096
parent  9072b487bf45c5e41e33c66b32d94aea84732d1b
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 class AssetDrop < BaseDrop
0
- liquid_attributes.push(*[:content_type, :size, :filename, :width, :height])
0
+ liquid_attributes.push(*[:content_type, :size, :filename, :width, :height, :title])
0
 
0
   [:image, :movie, :audio, :other, :pdf].each do |content|
0
     define_method("is_#{content}") { @source.send("#{content}?") }
...
6
7
8
 
 
9
10
11
...
6
7
8
9
10
11
12
13
0
@@ -6,6 +6,8 @@
0
 
0
   <%= error_messages_for :asset %>
0
   <dl class="group">
0
+ <dt><label for="asset_title">Title</label> <span class="hint">If you don't enter a title, we will use the filename instead.</span></dt>
0
+ <dd><%= f.text_field :title %></dd>
0
     <dt><label for="asset_tag">Tags</label> <span class="hint">Enter one or more tags separated by a comma or a space (for example, <em>"Web Dev" Tutorials</em> or <em>Web Dev, Tutorials</em>).</span></dt>
0
     <dd><%= f.text_field :tag %></dd>
0
     <dt><label for="asset_uploaded_data">Select a file</label></dt>

Comments

    No one has commented yet.