sutty/app/views/posts/attribute_ro/_image.haml

10 lines
309 B
Text
Raw Normal View History

%tr{ id: attribute }
%th= post_label_t(attribute, :path, post: post)
%td
2019-08-20 21:59:54 +00:00
- if metadata.value['path'].present?
%figure
2019-08-22 01:09:29 +00:00
= image_tag url_for(metadata.static_file),
alt: metadata.value['description'],
class: 'img-fluid'
2019-08-20 21:59:54 +00:00
%figcaption= metadata.value['description']