1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-14 21:45:08 -05:00
kaiwa/clientapp/templates/includes/embeds.jade
2014-01-02 00:52:26 -08:00

20 lines
817 B
Plaintext

section.embed.active
- if (locals.type === 'photo')
a.photo(href=locals.original, target="_blank")
img.embedded(width=locals.width, height=locals.height, src=locals.url, alt=locals.title)
-if (locals.title || locals.description)
.description
-if (locals.title)
h3= locals.title
-if (locals.description)
p= locals.description
- else if (locals.type === 'video' && locals.thumbnail_url)
a.embed.preview(href=locals.original, target="_blank")
img.embedded(width=locals.width, height=locals.height, src=locals.thumbnail_url, alt=locals.title);
-if (locals.title || locals.description)
.description
-if (locals.title)
h3= locals.title
-if (locals.description)
p= locals.description