]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5250 Tabs => spaces in source
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 6 May 2014 14:12:10 +0000 (16:12 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 6 May 2014 14:12:17 +0000 (16:12 +0200)
sonar-server/src/main/coffee/api-documentation/collections/web-service-actions.coffee
sonar-server/src/main/coffee/api-documentation/models/web-service-action-response.coffee
sonar-server/src/main/coffee/api-documentation/views/api-documentation-action-view.coffee
sonar-server/src/main/hbs/api-documentation/api-documentation-action.hbs
sonar-server/src/main/hbs/api-documentation/api-documentation-actions.hbs
sonar-server/src/main/hbs/api-documentation/api-documentation-layout.hbs
sonar-server/src/main/hbs/api-documentation/api-documentation-web-service.hbs
sonar-server/src/main/less/api-documentation.less

index 48ce69b9bbe7966ca9dfa1ceece1298b11490be1..955ae184a39ede63ce68b625f98402ee32ba9ad0 100644 (file)
@@ -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
index 77373cc113e4da54f41a9b938362fb8390adb0ab..03a5f48e66f14100413e5f97f987063025322041 100644 (file)
@@ -6,5 +6,5 @@ define [
 
   class WebServiceActionResponse extends Backbone.Model
 
-       url: ->
+    url: ->
       "#{baseUrl}/api/webservices/response_example?controller=#{@get('controller')}&action=#{@get('action')}"
index f4ab0bd11623306bff5cfcf31647b58bda837b63..0920cae53ae709f8b2d38d0e720508474d688acb 100644 (file)
@@ -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()
 
index 369a3e7bb4184eeeb559e0c65225e6bf2d744d72..55a08a069b394000749f6cb7bb394ec186f584ac 100644 (file)
@@ -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}}
 <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>
index 1c118d098df361c578288305b79d22ace56dd975..b5f7dd79a73a6327e5e693fc999b3a6184a2be07 100644 (file)
@@ -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
index de670fdbf73ffd618e7561ea8677105658abb944..149427d617b6f118dd4f0fc6baac52f8e9917051 100644 (file)
@@ -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>
index 14a4b65daf52917d8c4e87402e5442cbcf4d2c4e..1e5965cd4d52fd61e45d861353dcab7fd25f08ac 100644 (file)
@@ -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>
index bbd786a60c0b946b8e141eb93a345c3993cc5082..d29fe321a64d7519268dc8dad02becd7812c50f6 100644 (file)
   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 {
             }
           }
 
-                                       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;
         white-space: pre-wrap;
       }
     }
-       }
+  }
 }