From 7267a0a579d72ba3e4d589faa1a7144812d8ed60 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Tue, 6 May 2014 16:12:10 +0200 Subject: [PATCH] SONAR-5250 Tabs => spaces in source --- .../collections/web-service-actions.coffee | 4 +- .../models/web-service-action-response.coffee | 2 +- .../api-documentation-action-view.coffee | 4 +- .../api-documentation-action.hbs | 52 +++++++-------- .../api-documentation-actions.hbs | 2 +- .../api-documentation-layout.hbs | 6 +- .../api-documentation-web-service.hbs | 6 +- .../src/main/less/api-documentation.less | 64 +++++++++---------- 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 @@

- {{#if post}}POST{{else}}GET{{/if}} - {{path}} + {{#if post}}POST{{else}}GET{{/if}} + {{path}}

- {{#if since}}Since {{since}}{{#if internal}} -{{/if}}{{/if}} - {{#if internal}}For internal use only{{/if}} + {{#if since}}Since {{since}}{{#if internal}} -{{/if}}{{/if}} + {{#if internal}}For internal use only{{/if}}

{{{description}}}

{{#if params}} @@ -12,28 +12,28 @@ {{#each params}} - + {{/each}}
- {{key}} -
{{#if required}}required{{else}}optional{{/if}}
- -
-

{{{description}}}

- {{#if possibleValues}} -

- Possible values: -

    - {{#each possibleValues}} -
  • {{this}}
  • - {{/each}} -
-

- {{/if}} - {{#if exampleValue}} -

- Example value: {{exampleValue}} -

- {{/if}} -
+ {{key}} +
{{#if required}}required{{else}}optional{{/if}}
+ +
+

{{{description}}}

+ {{#if possibleValues}} +

+ Possible values: +

    + {{#each possibleValues}} +
  • {{this}}
  • + {{/each}} +
+

+ {{/if}} + {{#if exampleValue}} +

+ Example value: {{exampleValue}} +

+ {{/if}} +
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 @@

{{description}}

\ 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 @@