3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 12:29:26 +01:00

Slight web improvements

Cleaned up polls.jade
Added a link to the first interpolated quotes.
This commit is contained in:
Daniel Evans 2012-06-17 01:16:58 +01:00
parent ad180c962d
commit 6c459c5b23
2 changed files with 9 additions and 5 deletions

View File

@ -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)

View File

@ -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')