5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:31:42 +00:00

no fallar si la imagen no existe

This commit is contained in:
f 2019-08-20 18:59:54 -03:00
parent d9dcbbadd3
commit 6d3e73fdfe
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -1,6 +1,7 @@
%tr{ id: attribute }
%th= post_label_t(attribute, :path, post: post)
%td
%figure
= image_tag metadata.value['path'], alt: metadata.value['description']
%figcaption= metadata.value['description']
- if metadata.value['path'].present?
%figure
= image_tag metadata.value['path'], alt: metadata.value['description']
%figcaption= metadata.value['description']