# HG changeset patch # User Chloe Laisne # Date 1474909295 -7200 # Node ID f3dae62a0d8ae7aacc266bc3a2874f7356bf6a2e # Parent eba7dac7f27b3051946ed610b648796929b0d00d Add folder icon to treemap diff -r eba7dac7f27b -r f3dae62a0d8a cms/app-client/app/components/visu-langues.js --- a/cms/app-client/app/components/visu-langues.js Sun Sep 25 22:43:38 2016 +0200 +++ b/cms/app-client/app/components/visu-langues.js Mon Sep 26 19:01:35 2016 +0200 @@ -130,7 +130,9 @@ node.filter(function(d) { return d._children; }) .classed("children", true) - .on("click", transition); + .on("click", transition) + .append("i") + .attr("class", "fa fa-folder-o"); node.append("span") .html(function(d) { return d.name + ' (' + d.count + ')'; }); diff -r eba7dac7f27b -r f3dae62a0d8a cms/app-client/app/styles/tabs/langues.scss --- a/cms/app-client/app/styles/tabs/langues.scss Sun Sep 25 22:43:38 2016 +0200 +++ b/cms/app-client/app/styles/tabs/langues.scss Mon Sep 26 19:01:35 2016 +0200 @@ -58,6 +58,15 @@ border-right: none; } +#tabs-langues .node .fa { + margin-right: 5px; +} + +#tabs-langues .node .fa::before { + font-size: 14px; + line-height: 12px; +} + #tabs-langues .node .count { font-weight: bold; } \ No newline at end of file