This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
binaryattraction/app/views/photos/_photo.html.haml

6 lines
288 B
Plaintext

%div.centered{ :style => "width: #{@photo.width rescue 50}px" }
- if @photo and @photo.exist?
%img{ :src => @photo.pathname, :alt => @photo.filename, :width => @photo.width, :height => @photo.height }
- else
%img{ :src => '/images/image-missing.png', :alt => 'Missing File' }