3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00
dbot/views/quotes.jade

12 lines
343 B
Plaintext

div#quotelist
-each quote in quotes
-if(quote.match(locals.url_regex))
div.quote
a(href=quote)
-if(quote.match(/(jpg|png|gif|jpeg|tiff)$/))
=img(src=quote)
-else
=quote
-else
div.quote #{quote}