1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-08-13 17:03:51 -04:00
kaiwa/clientapp/templates/includes/embeds.jade

20 lines
817 B
Plaintext
Raw Normal View History

2014-01-02 03:52:26 -05:00
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