diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-08-10 17:06:07 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-08-10 17:11:36 +0200 |
commit | a3df8c53bec6e8e61cac61a41c8e7489b5bfb098 (patch) | |
tree | 547002af955d011a9ec402bf43e8e6c76c7f3809 | |
parent | 9eab62905ef3f1e1cb8b3b7f165c5f7fb07b218f (diff) | |
download | sonarqube-a3df8c53bec6e8e61cac61a41c8e7489b5bfb098.tar.gz sonarqube-a3df8c53bec6e8e61cac61a41c8e7489b5bfb098.zip |
do not show numbers in the inheritance facet on the rules page
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/templates/facets/coding-rules-inheritance-facet.hbs | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js b/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js index 36f56294967..1a05fff7479 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/facets/inheritance-facet.js @@ -18,12 +18,14 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ define([ - './base-facet' + './base-facet', + '../templates' ], function (BaseFacet) { var $ = jQuery; return BaseFacet.extend({ + template: Templates['coding-rules-inheritance-facet'], initialize: function (options) { this.listenTo(options.app.state, 'change:query', this.onQueryChange); diff --git a/server/sonar-web/src/main/js/apps/coding-rules/templates/facets/coding-rules-inheritance-facet.hbs b/server/sonar-web/src/main/js/apps/coding-rules/templates/facets/coding-rules-inheritance-facet.hbs new file mode 100644 index 00000000000..b774078c6bb --- /dev/null +++ b/server/sonar-web/src/main/js/apps/coding-rules/templates/facets/coding-rules-inheritance-facet.hbs @@ -0,0 +1,9 @@ +{{> '_coding-rules-facet-header'}} + +<div class="search-navigator-facet-list"> + {{#each values}} + <a class="facet search-navigator-facet js-facet" data-value="{{val}}" title="{{default label val}}"> + <span class="facet-name">{{default label val}}{{#if extra}} <span class="note">{{extra}}</span>{{/if}}</span> + </a> + {{/each}} +</div> |