no fallar si la imagen no existe
This commit is contained in:
parent
d9dcbbadd3
commit
6d3e73fdfe
1 changed files with 4 additions and 3 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue