Skip to content

Commit

Permalink
fixed truncate deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cristi committed Oct 14, 2009
1 parent 77178b4 commit aa71414
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/admin/tiny_paper/_images_images.html.haml
Expand Up @@ -21,8 +21,9 @@
%span.asset_image
%img{:src => asset.thumbnail(:thumbnail), :style => asset.height(:thumbnail) > 0 ? "padding-top:#{(95 - asset.height(:thumbnail))/2}px" : nil }
%span.asset_title
= truncate(asset.title, 16)
= truncate(asset.title, :length => 16)

%span.image_sizes{:style => "display:none;"}
= render :partial => 'images_sizes', :locals => {:asset => asset}
-if @assets.empty?
%li.no_results No results!
%li.no_results No results!

0 comments on commit aa71414

Please sign in to comment.