</h3>
<span class="subtitle">
{{#if since}}Since {{since}}{{#if internal}} -{{/if}}{{/if}}
- {{#if internal}}<span class="internal">For internal use only</span>{{/if}}
+ {{#if internal}}<span class="badge">For internal use only</span>{{/if}}
</span>
<p>{{{description}}}</p>
{{#if params}}
<div class="search-navigator-side search-navigator-side-light">
<div class="search-navigator-filters">
<h1 class="page-title">Web Service API</h1>
+ <div class="page-actions">
+ <input id="api-documentation-show-internals" type="checkbox">
+ <label for="api-documentation-show-internals">Show Internals</label>
+ </div>
</div>
<div class="api-documentation-results panel"></div>
</div>
-<h3 class="list-group-item-heading">{{path}}</h3>
+<h3 class="list-group-item-heading">
+ {{path}}
+ {{#if internal}}
+ <span class="badge">internal</span>
+ {{/if}}
+</h3>
<p class="list-group-item-text">{{{description}}}</p>
-{{#if internal}}
- <p class="note">internal</p>
-{{/if}}
<a href="http://www.sonarqube.org/documentation" target="sonar_doc">Documentation</a> -
<a href="http://www.sonarqube.org/support" target="support">Get Support</a> -
<a href="http://sonar-plugins.codehaus.org" target="plugins">Plugins</a> -
- <a href="<%= ApplicationController.root_context -%>/api_documentation">Web Service API</a>
+ <a href="{{link '/api_documentation'}}">Web Service API</a>
</div>
<div class="shortcuts-section">
@import "components/bubble-popup";
@import "components/list-groups";
@import "components/panels";
+@import "components/badges";
--- /dev/null
+@import (reference) "../variables";
+@import (reference) "../mixins";
+
+.badge {
+ display: inline-block;
+ min-width: 10px;
+ padding: 2px 7px;
+ font-size: 11px;
+ font-weight: 300;
+ color: #fff;
+ line-height: 12px;
+ vertical-align: baseline;
+ white-space: nowrap;
+ text-align: center;
+ background-color: @blue;
+
+ &:empty { display: none; }
+
+ .list-group-item > &,
+ .list-group-item-heading > & {
+ float: right;
+ }
+
+ .list-group-item > & + &,
+ .list-group-item-heading > & + & {
+ margin-right: 5px;
+ }
+}