BikeBikeBike/app/views/organizations/_mini_preview.html.haml
2014-07-18 20:35:15 -06:00

6 lines
254 B
Plaintext

= link_to organization do
%figure.org-mini-preview{:class => (organization.avatar.is_landscape? ? 'landscape' : 'portrait')}
= image_tag organization.avatar.preview.url
%figcaption
%h5= organization.name
%p= location(organization.locations[0])