From b742e82f56f47e64f9d95772cc7314743236442e Mon Sep 17 00:00:00 2001 From: Dafydd Francis Date: Thu, 10 Nov 2011 00:25:19 +0000 Subject: [PATCH] Images. In *my* quote page? More likely than you think! --- views/quotes.jade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/views/quotes.jade b/views/quotes.jade index 4299ba4..eb291bd 100644 --- a/views/quotes.jade +++ b/views/quotes.jade @@ -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}