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 } %tr{ id: attribute }
%th= post_label_t(attribute, :path, post: post) %th= post_label_t(attribute, :path, post: post)
%td %td
%figure - if metadata.value['path'].present?
= image_tag metadata.value['path'], alt: metadata.value['description'] %figure
%figcaption= metadata.value['description'] = image_tag metadata.value['path'], alt: metadata.value['description']
%figcaption= metadata.value['description']