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) {
+
-%text>
\ No newline at end of file
+%text>