mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
commit
d1daf51c67
@ -27,10 +27,9 @@ ul#votelist
|
||||
.vote-track
|
||||
-if(!isNaN(percentage))
|
||||
.vote-percentage(style="width: #{percentage}%")
|
||||
-if(votes == 1)
|
||||
|#{votes} vote
|
||||
-else
|
||||
|#{votes} votes
|
||||
case votes
|
||||
when 1: #{votes} vote
|
||||
default: #{votes} votes
|
||||
-if(!isNaN(percentage))
|
||||
|(#{percentage.toFixed(2)}%)
|
||||
-if(hasYouTubeVids)
|
||||
|
@ -15,6 +15,11 @@ ul#quotelist
|
||||
-else
|
||||
a(href=quote)
|
||||
=quote
|
||||
-else if(quote.match(/~~([^~]+)~~/))
|
||||
-var res = quote.match(/~~([^~]+)~~/)
|
||||
-if(res != null)
|
||||
li.quote
|
||||
a(href="/quotes/#{res[1]}") #{quote}
|
||||
-else
|
||||
li.quote #{quote}
|
||||
-if(hasYouTubeVids)
|
||||
|
Loading…
Reference in New Issue
Block a user