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 }
|
||||
%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']
|
||||
|
|
Loading…
Reference in a new issue