# HG changeset patch # User Marcin Kuzminski # Date 2018-01-18 18:04:48 # Node ID 590df01217bb4db68edf753c65525e31ff1d2282 # Parent 3775edd6faa28cee8a341bec8d827666419b9291 reviewers: colorify the groups diff --git a/rhodecode/public/js/src/rhodecode/utils/colorgenerator.js b/rhodecode/public/js/src/rhodecode/utils/colorgenerator.js --- a/rhodecode/public/js/src/rhodecode/utils/colorgenerator.js +++ b/rhodecode/public/js/src/rhodecode/utils/colorgenerator.js @@ -22,7 +22,8 @@ *usage:: * var CG = new ColorGenerator(); * var col = CG.getColor(key); //returns array of RGB -* 'rgb({0})'.format(col.join(',') +* CG.asRGB(col) === 'rgb({0})'.format(col.join(',') +* * * @returns {ColorGenerator} */ @@ -47,6 +48,9 @@ ColorGenerator.prototype = { return this.cacheColorMap[key]; } }, + asRGB:function(color_tuple) { + return 'rgb({0})'.format(color_tuple.join(',')); + }, _hsvToRgb:function(h,s,v){ if (s === 0.0) return [v, v, v]; diff --git a/rhodecode/templates/ejs_templates/templates.html b/rhodecode/templates/ejs_templates/templates.html --- a/rhodecode/templates/ejs_templates/templates.html +++ b/rhodecode/templates/ejs_templates/templates.html @@ -26,11 +26,24 @@ if (show_disabled) { + - \ No newline at end of file +