Images. In *my* quote page? More likely than you think!

This commit is contained in:
Dafydd Francis 2011-11-10 00:25:19 +00:00
parent d60038a852
commit b742e82f56

View File

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