diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-06 16:12:10 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-05-06 16:12:17 +0200 |
commit | 7267a0a579d72ba3e4d589faa1a7144812d8ed60 (patch) | |
tree | 694f18e2b0a1926e8ebf1ae6d0e46e9874a1af26 | |
parent | f00fee2d78fa9120d549ba43a54ec7cfe0e8f3cf (diff) | |
download | sonarqube-7267a0a579d72ba3e4d589faa1a7144812d8ed60.tar.gz sonarqube-7267a0a579d72ba3e4d589faa1a7144812d8ed60.zip |
SONAR-5250 Tabs => spaces in source
8 files changed, 70 insertions, 70 deletions
diff --git a/sonar-server/src/main/coffee/api-documentation/collections/web-service-actions.coffee b/sonar-server/src/main/coffee/api-documentation/collections/web-service-actions.coffee index 48ce69b9bbe..955ae184a39 100644 --- a/sonar-server/src/main/coffee/api-documentation/collections/web-service-actions.coffee +++ b/sonar-server/src/main/coffee/api-documentation/collections/web-service-actions.coffee @@ -11,5 +11,5 @@ define [ comparator: 'key' initialize: (models, options) -> - _.each models, (model) -> - model.path = options.path + '/' + model.key + _.each models, (model) -> + model.path = options.path + '/' + model.key diff --git a/sonar-server/src/main/coffee/api-documentation/models/web-service-action-response.coffee b/sonar-server/src/main/coffee/api-documentation/models/web-service-action-response.coffee index 77373cc113e..03a5f48e66f 100644 --- a/sonar-server/src/main/coffee/api-documentation/models/web-service-action-response.coffee +++ b/sonar-server/src/main/coffee/api-documentation/models/web-service-action-response.coffee @@ -6,5 +6,5 @@ define [ class WebServiceActionResponse extends Backbone.Model - url: -> + url: -> "#{baseUrl}/api/webservices/response_example?controller=#{@get('controller')}&action=#{@get('action')}" diff --git a/sonar-server/src/main/coffee/api-documentation/views/api-documentation-action-view.coffee b/sonar-server/src/main/coffee/api-documentation/views/api-documentation-action-view.coffee index f4ab0bd1162..0920cae53ae 100644 --- a/sonar-server/src/main/coffee/api-documentation/views/api-documentation-action-view.coffee +++ b/sonar-server/src/main/coffee/api-documentation/views/api-documentation-action-view.coffee @@ -21,8 +21,8 @@ define [ fetchExampleResponse: (event) -> exampleResponse = new WebServiceActionResponse - controller: @model.get('path').substring(0, @model.get('path').length - @model.get('key').length - 1) - action: @model.get('key') + controller: @model.get('path').substring(0, @model.get('path').length - @model.get('key').length - 1) + action: @model.get('key') @listenTo(exampleResponse, 'change', @appendExampleView) exampleResponse.fetch() diff --git a/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs b/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs index 369a3e7bb41..55a08a069b3 100644 --- a/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs +++ b/sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs @@ -1,10 +1,10 @@ <h3 class="big"> - {{#if post}}POST{{else}}GET{{/if}} - {{path}} + {{#if post}}POST{{else}}GET{{/if}} + {{path}} </h3> <span class="subtitle"> - {{#if since}}Since {{since}}{{#if internal}} -{{/if}}{{/if}} - {{#if internal}}<span class="internal">For internal use only</span>{{/if}} + {{#if since}}Since {{since}}{{#if internal}} -{{/if}}{{/if}} + {{#if internal}}<span class="internal">For internal use only</span>{{/if}} </span> <p>{{{description}}}</p> {{#if params}} @@ -12,28 +12,28 @@ <table> {{#each params}} <tr> - <td style="width:10em"> - <code>{{key}}</code> - <div class="subtitle">{{#if required}}required{{else}}optional{{/if}}</div> - </td<> - <td> - <p>{{{description}}}</p> - {{#if possibleValues}} - <p> - <em>Possible values:</em> - <ul class="possible-values"> - {{#each possibleValues}} - <li><code>{{this}}</code></li> - {{/each}} - </ul> - </p> - {{/if}} - {{#if exampleValue}} - <p> - <em>Example value:</em> <code>{{exampleValue}}</code> - </p> - {{/if}} - </td> + <td style="width:10em"> + <code>{{key}}</code> + <div class="subtitle">{{#if required}}required{{else}}optional{{/if}}</div> + </td<> + <td> + <p>{{{description}}}</p> + {{#if possibleValues}} + <p> + <em>Possible values:</em> + <ul class="possible-values"> + {{#each possibleValues}} + <li><code>{{this}}</code></li> + {{/each}} + </ul> + </p> + {{/if}} + {{#if exampleValue}} + <p> + <em>Example value:</em> <code>{{exampleValue}}</code> + </p> + {{/if}} + </td> </tr> {{/each}} </table> diff --git a/sonar-server/src/main/hbs/api-documentation/api-documentation-actions.hbs b/sonar-server/src/main/hbs/api-documentation/api-documentation-actions.hbs index 1c118d098df..b5f7dd79a73 100644 --- a/sonar-server/src/main/hbs/api-documentation/api-documentation-actions.hbs +++ b/sonar-server/src/main/hbs/api-documentation/api-documentation-actions.hbs @@ -1,5 +1,5 @@ <div class="navigator-header"> - <h1 class="navigator-header-title">{{path}}</h1> + <h1 class="navigator-header-title">{{path}}</h1> </div> <p>{{description}}</p> <div class="api-documentation-actions-list"></div>
\ No newline at end of file diff --git a/sonar-server/src/main/hbs/api-documentation/api-documentation-layout.hbs b/sonar-server/src/main/hbs/api-documentation/api-documentation-layout.hbs index de670fdbf73..149427d617b 100644 --- a/sonar-server/src/main/hbs/api-documentation/api-documentation-layout.hbs +++ b/sonar-server/src/main/hbs/api-documentation/api-documentation-layout.hbs @@ -1,11 +1,11 @@ <div class="navigator-content"> <div class="navigator-side"> <div class="navigator-actions"> - <h1 class="navigator-header-title">API Documentation</h1> + <h1 class="navigator-header-title">API Documentation</h1> </div> <div class="api-documentation-show-internals subtitle"> - <label for="api-documentation-show-internals">Show internal services</label> - <input type="checkbox" id="api-documentation-show-internals"/> + <label for="api-documentation-show-internals">Show internal services</label> + <input type="checkbox" id="api-documentation-show-internals"/> </div> <div class="navigator-results api-documentation-nav"></div> </div> diff --git a/sonar-server/src/main/hbs/api-documentation/api-documentation-web-service.hbs b/sonar-server/src/main/hbs/api-documentation/api-documentation-web-service.hbs index 14a4b65daf5..1e5965cd4d5 100644 --- a/sonar-server/src/main/hbs/api-documentation/api-documentation-web-service.hbs +++ b/sonar-server/src/main/hbs/api-documentation/api-documentation-web-service.hbs @@ -1,5 +1,5 @@ <div class="line line-small"> - <h1>{{path}}</h1> - <span class="subtitle">{{{description}}}</span> - {{#if internal}}<span class="subtitle internal">internal</span>{{/if}} + <h1>{{path}}</h1> + <span class="subtitle">{{{description}}}</span> + {{#if internal}}<span class="subtitle internal">internal</span>{{/if}} </div> diff --git a/sonar-server/src/main/less/api-documentation.less b/sonar-server/src/main/less/api-documentation.less index bbd786a60c0..d29fe321a64 100644 --- a/sonar-server/src/main/less/api-documentation.less +++ b/sonar-server/src/main/less/api-documentation.less @@ -84,23 +84,23 @@ margin-top: 10px; margin-left: 5px; - .api-documentation-action { - margin-top: 30px; + .api-documentation-action { + margin-top: 30px; - & > p, & > h3 { - margin-top: 5px; - } + & > p, & > h3 { + margin-top: 5px; + } - table { - width: 100%; + table { + width: 100%; - tr { - border-top: 1px solid @navigatorBorderLightColor; + tr { + border-top: 1px solid @navigatorBorderLightColor; - td { - padding: 10px 0; - margin: 5px; - vertical-align: top; + td { + padding: 10px 0; + margin: 5px; + vertical-align: top; ul { li { @@ -109,29 +109,29 @@ } } - ul.possible-values { - display: inline; + ul.possible-values { + display: inline; - li { - display: inline; + li { + display: inline; margin: 0; - &:before { - content: ', ' - } + &:before { + content: ', ' + } - &:first-child:before { - content: '' - } - } - } - } - } - } + &:first-child:before { + content: '' + } + } + } + } + } + } - .example-response { - text-decoration: underline; - } + .example-response { + text-decoration: underline; + } .example-response-content { margin: 10px 0; @@ -143,5 +143,5 @@ white-space: pre-wrap; } } - } + } } |