mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
20 lines
639 B
Plaintext
20 lines
639 B
Plaintext
ul#quotelist
|
|
-var hasYouTubeVids=false
|
|
-each quote in quotes
|
|
-if(quote.match(locals.url_regex))
|
|
li.quote
|
|
-if(quote.match(/(jpg|png|gif|jpeg|tiff)$/))
|
|
a(href=quote)
|
|
img(src=quote)
|
|
-else if(quote.match(/youtube.com\/watch/))
|
|
-hasYouTubeVids = true
|
|
span(class='ytplaceholder')
|
|
=quote
|
|
-else
|
|
a(href=quote)
|
|
=quote
|
|
-else
|
|
li.quote #{quote}
|
|
-if(hasYouTubeVids)
|
|
script(src='/ytembed.js')
|