updated view to use new size_calc helper, and added filename display.

This commit is contained in:
Andrew Davidson 2009-10-30 00:37:58 -07:00
parent 8524ee1a79
commit ba7c06d7b6

View file

@ -2,6 +2,9 @@
<div class="box"> <div class="box">
<div class="border" style="width:<%= size[0] %>;"> <div class="border" style="width:<%= size[0] %>;">
<%= image_tag @fpath , :width => size[0] , :height => size[1] %> <%= link_to image_tag(@fpath , :width => size[0] , :height => size[1]), @fpath, :alt => @fname %>
<% if @fname then %>
<p><%= @fname %></p>
<% end %>
</div> </div>
</div> </div>