5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:11:41 +00:00
panel/app/views/posts/attribute_ro/_image.haml

10 lines
335 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'
%figcaption{ dir: dir, lang: locale }= metadata.value['description']