From 6b8ab49546c0a45c08e7d7d82ad01e61cbf8fa53 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 20 Feb 2015 15:29:29 +0100 Subject: [PATCH] apply web service api feedback --- .../api-documentation-action.hbs | 2 +- .../api-documentation-layout.hbs | 4 +++ .../api-documentation-web-service.hbs | 10 ++++--- .../src/main/hbs/nav/nav-shortcuts-help.hbs | 2 +- .../sonar-web/src/main/less/components.less | 1 + .../src/main/less/components/badges.less | 28 +++++++++++++++++++ 6 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 server/sonar-web/src/main/less/components/badges.less diff --git a/server/sonar-web/src/main/hbs/api-documentation/api-documentation-action.hbs b/server/sonar-web/src/main/hbs/api-documentation/api-documentation-action.hbs index d728667dc60..8194aa3b0db 100644 --- a/server/sonar-web/src/main/hbs/api-documentation/api-documentation-action.hbs +++ b/server/sonar-web/src/main/hbs/api-documentation/api-documentation-action.hbs @@ -4,7 +4,7 @@ {{#if since}}Since {{since}}{{#if internal}} -{{/if}}{{/if}} - {{#if internal}}For internal use only{{/if}} + {{#if internal}}For internal use only{{/if}}

{{{description}}}

{{#if params}} diff --git a/server/sonar-web/src/main/hbs/api-documentation/api-documentation-layout.hbs b/server/sonar-web/src/main/hbs/api-documentation/api-documentation-layout.hbs index 1d9d56e7be6..2527222fad2 100644 --- a/server/sonar-web/src/main/hbs/api-documentation/api-documentation-layout.hbs +++ b/server/sonar-web/src/main/hbs/api-documentation/api-documentation-layout.hbs @@ -1,6 +1,10 @@

Web Service API

+
+ + +
diff --git a/server/sonar-web/src/main/hbs/api-documentation/api-documentation-web-service.hbs b/server/sonar-web/src/main/hbs/api-documentation/api-documentation-web-service.hbs index d5c585b4f4f..2e47c41cc68 100644 --- a/server/sonar-web/src/main/hbs/api-documentation/api-documentation-web-service.hbs +++ b/server/sonar-web/src/main/hbs/api-documentation/api-documentation-web-service.hbs @@ -1,5 +1,7 @@ -

{{path}}

+

+ {{path}} + {{#if internal}} + internal + {{/if}} +

{{{description}}}

-{{#if internal}} -

internal

-{{/if}} diff --git a/server/sonar-web/src/main/hbs/nav/nav-shortcuts-help.hbs b/server/sonar-web/src/main/hbs/nav/nav-shortcuts-help.hbs index 27a774e6137..f62f5325f4d 100644 --- a/server/sonar-web/src/main/hbs/nav/nav-shortcuts-help.hbs +++ b/server/sonar-web/src/main/hbs/nav/nav-shortcuts-help.hbs @@ -8,7 +8,7 @@ Documentation - Get Support - Plugins - - Web Service API + Web Service API
diff --git a/server/sonar-web/src/main/less/components.less b/server/sonar-web/src/main/less/components.less index c64d9930a42..a20381805dc 100644 --- a/server/sonar-web/src/main/less/components.less +++ b/server/sonar-web/src/main/less/components.less @@ -21,3 +21,4 @@ @import "components/bubble-popup"; @import "components/list-groups"; @import "components/panels"; +@import "components/badges"; diff --git a/server/sonar-web/src/main/less/components/badges.less b/server/sonar-web/src/main/less/components/badges.less new file mode 100644 index 00000000000..f0b6c34b2e2 --- /dev/null +++ b/server/sonar-web/src/main/less/components/badges.less @@ -0,0 +1,28 @@ +@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; + } +} -- 2.39.5