2011-11-25 14:44:18 +00:00
|
|
|
ul#quotelist
|
2012-03-12 21:38:09 +00:00
|
|
|
-var hasYouTubeVids=false
|
2011-09-15 12:30:52 +01:00
|
|
|
-each quote in quotes
|
2011-11-09 23:51:01 +00:00
|
|
|
-if(quote.match(locals.url_regex))
|
2011-11-25 14:44:18 +00:00
|
|
|
li.quote
|
2012-03-12 21:38:09 +00:00
|
|
|
-if(quote.match(/(jpg|png|gif|jpeg|tiff)$/))
|
|
|
|
a(href=quote)
|
2011-11-10 00:31:05 +00:00
|
|
|
img(src=quote)
|
2012-03-12 21:38:09 +00:00
|
|
|
-else if(quote.match(/youtube.com\/watch/))
|
|
|
|
-hasYouTubeVids = true
|
|
|
|
span(class='ytplaceholder')
|
|
|
|
=quote
|
|
|
|
-else
|
|
|
|
a(href=quote)
|
2011-11-10 00:25:19 +00:00
|
|
|
=quote
|
2011-11-09 23:51:01 +00:00
|
|
|
-else
|
2011-11-25 14:44:18 +00:00
|
|
|
li.quote #{quote}
|
2012-03-12 21:38:09 +00:00
|
|
|
-if(hasYouTubeVids)
|
|
|
|
script(src='/ytembed.js')
|