]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6917 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Tue, 10 Nov 2015 09:47:28 +0000 (10:47 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 10 Nov 2015 09:47:28 +0000 (10:47 +0100)
server/sonar-web/src/main/js/apps/api-documentation/item-view.js
server/sonar-web/src/main/js/apps/api-documentation/templates/api-documentation-web-service.hbs

index c8435bae3246ca0ed33befa197a25b20c8fb463e..d55546e7e2bc2cb7264da12d066faf96d28f28bf 100644 (file)
@@ -37,6 +37,7 @@ export default Marionette.ItemView.extend({
     this.$el.attr('data-path', this.model.get('path'));
     this.$el.toggleClass('active', this.options.highlighted);
     this.toggleHidden();
+    this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'right' });
   },
 
   onClick: function (e) {
index 2e47c41cc6818e5da4b661f28cb1b592e88f37b0..ffe28bb6a06cb1e0822907b6826602e4c26bce85 100644 (file)
@@ -1,7 +1,7 @@
 <h3 class="list-group-item-heading">
   {{path}}
   {{#if internal}}
-    <span class="badge">internal</span>
+    <span class="badge" data-toggle="tooltip" title="{{t 'api_documentation.internal_tooltip'}}">internal</span>
   {{/if}}
 </h3>
 <p class="list-group-item-text">{{{description}}}</p>