forked from GitHub/dbot
commit
d1daf51c67
@ -27,10 +27,9 @@ ul#votelist
|
|||||||
.vote-track
|
.vote-track
|
||||||
-if(!isNaN(percentage))
|
-if(!isNaN(percentage))
|
||||||
.vote-percentage(style="width: #{percentage}%")
|
.vote-percentage(style="width: #{percentage}%")
|
||||||
-if(votes == 1)
|
case votes
|
||||||
|#{votes} vote
|
when 1: #{votes} vote
|
||||||
-else
|
default: #{votes} votes
|
||||||
|#{votes} votes
|
|
||||||
-if(!isNaN(percentage))
|
-if(!isNaN(percentage))
|
||||||
|(#{percentage.toFixed(2)}%)
|
|(#{percentage.toFixed(2)}%)
|
||||||
-if(hasYouTubeVids)
|
-if(hasYouTubeVids)
|
||||||
|
@ -15,7 +15,12 @@ ul#quotelist
|
|||||||
-else
|
-else
|
||||||
a(href=quote)
|
a(href=quote)
|
||||||
=quote
|
=quote
|
||||||
-else
|
-else if(quote.match(/~~([^~]+)~~/))
|
||||||
|
-var res = quote.match(/~~([^~]+)~~/)
|
||||||
|
-if(res != null)
|
||||||
|
li.quote
|
||||||
|
a(href="/quotes/#{res[1]}") #{quote}
|
||||||
|
-else
|
||||||
li.quote #{quote}
|
li.quote #{quote}
|
||||||
-if(hasYouTubeVids)
|
-if(hasYouTubeVids)
|
||||||
script(src='/ytembed.js')
|
script(src='/ytembed.js')
|
||||||
|
Loading…
Reference in New Issue
Block a user