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:
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