From b742e82f56f47e64f9d95772cc7314743236442e Mon Sep 17 00:00:00 2001 From: Dafydd Francis Date: Thu, 10 Nov 2011 00:25:19 +0000 Subject: [PATCH 1/2] 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} From 6d00638f00400654f14631e0ae8e85db1135cff0 Mon Sep 17 00:00:00 2001 From: Dafydd Francis Date: Thu, 10 Nov 2011 00:31:05 +0000 Subject: [PATCH 2/2] Whoops too many ='s --- views/quotes.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/quotes.jade b/views/quotes.jade index eb291bd..b52557a 100644 --- a/views/quotes.jade +++ b/views/quotes.jade @@ -4,7 +4,7 @@ div#quotelist div.quote a(href=quote) -if(quote.match(/(jpg|png|gif|jpeg|tiff)$/)) - =img(src=quote) + img(src=quote) -else =quote -else