Sha256: d6a14f40fb0102de4f5437bd144075569773b7ee58eddcbe13c52a9d81088278
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
Perkins.Helpers.gravatar_url = (email, size) -> gravatar_id = MD5(email) "http://gravatar.com/avatar/#{gravatar_id}.png?s=#{size}" Perkins.Helpers.commit_url = (repo, sha) -> "#{repo.repo.http_url}/commit/#{sha}" Perkins.Helpers.status_label = (status)-> label = if status == true then "success" else "default" msg = if status == true then "passed" else "error" "<span class='label label-#{label}'>build | #{msg}</span>" Perkins.Helpers.status_class = (status)-> if status == true then "glyphicon glyphicon-ok" else "glyphicon glyphicon-remove" Perkins.Helpers.round = (int, decimals=2)-> #Math.round(int * 100) / 100 #+int.toFixed(2); parseFloat(int).toFixed(decimals)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
perkins-0.0.3 | lib/perkins/assets/javascripts/perkins/helpers.js.coffee |