mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
Slight web improvements
Cleaned up polls.jade Added a link to the first interpolated quotes.
This commit is contained in:
parent
ad180c962d
commit
6c459c5b23
@ -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,7 +15,12 @@ ul#quotelist
|
||||
-else
|
||||
a(href=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}
|
||||
-if(hasYouTubeVids)
|
||||
script(src='/ytembed.js')
|
||||
|
Loading…
Reference in New Issue
Block a user