updated view to use new size_calc helper, and added filename display.
This commit is contained in:
parent
8524ee1a79
commit
ba7c06d7b6
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
Loading…
Reference in a new issue