3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

Merge pull request #8 from dafrancis/master

Image links are now images
This commit is contained in:
Luke Slater 2011-11-09 16:31:30 -08:00
commit 7e5c5d3ca1

View File

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