5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-02 13:46:08 +00:00
panel/app/views/posts/attribute_ro/_image.haml

10 lines
335 B
Plaintext

%tr{ id: attribute }
%th= post_label_t(attribute, :path, post: post)
%td
- if metadata.value['path'].present?
%figure
= image_tag url_for(metadata.static_file),
alt: metadata.value['description'],
class: 'img-fluid'
%figcaption{ dir: dir, lang: locale }= metadata.value['description']