juan_gandhi: (VP)
[personal profile] juan_gandhi
from VERY expensive contractors


lazy val chartData = JArray(List(
("label" -> "Enabled") ~ ("data" -> enabled) ~ ("color" -> "#78c063"),
("label" -> "Not Enabled") ~ ("data" -> (total - enabled)) ~ ("color" -> "#f7d975")))

def render: CssSel =
".cname" #> name.getOrElse("") &
".total [href]" #> link &
".count-total *" #> total &
".count-enabled *" #> enabled &
".count-active *" #> active &
".count-not-enabled *" #> (total - enabled) &
".count-not-active *" #> (total - active) &
".enabled-pc *" #> asPercent(enabled.toDouble / total.toDouble) &
".chart-data" #> <lift:tail>{ Script(JsCrVar("clients_enabled", chartData) & OnLoad(Run("""$.plot($("#clients-enabled-chart"), clients_enabled, donut_options)"""))) }</lift:tail>

}
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

July 2025

S M T W T F S
  12345
6789 1011 12
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 13th, 2025 01:18 pm
Powered by Dreamwidth Studios