1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-18 07:15:08 -05:00
kaiwa/clientapp/templates/includes/embeds.jade
2014-01-01 16:25:44 -08:00

11 lines
560 B
Plaintext

- if (locals.type === 'photo')
a.embed.photo(href=locals.original, target="_blank")
img.embedded(width=locals.width, height=locals.height, src=locals.url, alt=locals.title)
br
a.embed.original(href=locals.original, target="_blank")= locals.original
- 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);
br
a.embed.original(href=locals.original, target="_blank")= locals.original