DEV: enforces block-indentation of ember-template-lint rules (#9408)

DEV: enforces block-indentation of ember-template-lint rules (#9408)

diff --git a/.template-lintrc.js b/.template-lintrc.js
index 232c254..f5ff55a 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -6,7 +6,7 @@ module.exports = {
   // "eol-last": "always",
 
   rules: {
-    "block-indentation": false,
+    "block-indentation": true,
     "deprecated-render-helper": true,
     "img-alt-attributes": false,
     "linebreak-style": true,
diff --git a/app/assets/javascripts/admin/templates/admin.hbs b/app/assets/javascripts/admin/templates/admin.hbs
index 2396114..dacf526 100644
--- a/app/assets/javascripts/admin/templates/admin.hbs
+++ b/app/assets/javascripts/admin/templates/admin.hbs
@@ -1,35 +1,33 @@
 {{#admin-wrapper class="container"}}
   <div class="row">
     <div class="full-width">
-    <div class="admin-main-nav">
-
-      <ul class="nav nav-pills">
-
-        {{nav-item route='admin.dashboard' label='admin.dashboard.title'}}
-        {{#if currentUser.admin}}
-          {{nav-item route='adminSiteSettings' label='admin.site_settings.title'}}
-        {{/if}}
-        {{nav-item route='adminUsersList' label='admin.users.title'}}
-        {{#if showGroups}}
-          {{nav-item route='groups' label='admin.groups.title'}}
-        {{/if}}
-        {{#if showBadges}}
-          {{nav-item route='adminBadges' label='admin.badges.title'}}
-        {{/if}}
-        {{#if currentUser.admin}}
-          {{nav-item route='adminEmail' label='admin.email.title'}}
-        {{/if}}
-        {{nav-item route='adminLogs' label='admin.logs.title'}}
-        {{#if currentUser.admin}}
-          {{nav-item route='adminCustomize' label='admin.customize.title'}}
-          {{nav-item route='adminApi' label='admin.api.title'}}
-          {{#if siteSettings.enable_backups}}
-            {{nav-item route='admin.backups' label='admin.backups.title'}}
+      <div class="admin-main-nav">
+        <ul class="nav nav-pills">
+          {{nav-item route='admin.dashboard' label='admin.dashboard.title'}}
+          {{#if currentUser.admin}}
+            {{nav-item route='adminSiteSettings' label='admin.site_settings.title'}}
+          {{/if}}
+          {{nav-item route='adminUsersList' label='admin.users.title'}}
+          {{#if showGroups}}
+            {{nav-item route='groups' label='admin.groups.title'}}
+          {{/if}}
+          {{#if showBadges}}
+            {{nav-item route='adminBadges' label='admin.badges.title'}}
           {{/if}}
-        {{/if}}
-        {{nav-item route='adminPlugins' label='admin.plugins.title'}}
-        {{plugin-outlet name="admin-menu" connectorTagName="" tagName=""}}
-      </ul>
+          {{#if currentUser.admin}}
+            {{nav-item route='adminEmail' label='admin.email.title'}}
+          {{/if}}
+          {{nav-item route='adminLogs' label='admin.logs.title'}}
+          {{#if currentUser.admin}}
+            {{nav-item route='adminCustomize' label='admin.customize.title'}}
+            {{nav-item route='adminApi' label='admin.api.title'}}
+            {{#if siteSettings.enable_backups}}
+              {{nav-item route='admin.backups' label='admin.backups.title'}}
+            {{/if}}
+          {{/if}}
+          {{nav-item route='adminPlugins' label='admin.plugins.title'}}
+          {{plugin-outlet name="admin-menu" connectorTagName="" tagName=""}}
+        </ul>
       </div>
 
       <div class='boxed white admin-content'>
@@ -37,7 +35,6 @@
           {{outlet}}
         </div>
       </div>
-
     </div>
   </div>
 {{/admin-wrapper}}
diff --git a/app/assets/javascripts/admin/templates/api-keys-index.hbs b/app/assets/javascripts/admin/templates/api-keys-index.hbs
index bd91228..0672b99 100644
--- a/app/assets/javascripts/admin/templates/api-keys-index.hbs
+++ b/app/assets/javascripts/admin/templates/api-keys-index.hbs
@@ -6,65 +6,65 @@
 
 {{#if model}}
   <table class="api-keys grid">
-  <thead>
-    <th>{{i18n "admin.api.key"}}</th>
-    <th>{{i18n "admin.api.description"}}</th>
-    <th>{{i18n "admin.api.user"}}</th>
-    <th>{{i18n "admin.api.created"}}</th>
-    <th>{{i18n "admin.api.last_used"}}</th>
-    <th>&nbsp;</th>
-  </thead>
-  <tbody>
-    {{#each model as |k|}}
-      <tr class={{if k.revoked_at "revoked"}}>
-        <td class="key">
-          {{#if k.revoked_at}}{{d-icon 'times-circle'}}{{/if}}
-          {{k.truncatedKey}}
-        </td>
-        <td class="key-description">
-          {{k.shortDescription}}
-        </td>
-        <td class="key-user">
-          <div class="label">{{i18n 'admin.api.user'}}</div>
-          {{#if k.user}}
-            {{#link-to "adminUser" k.user}}
-              {{avatar k.user imageSize="small"}}
-            {{/link-to}}
-          {{else}}
-            {{i18n "admin.api.all_users"}}
-          {{/if}}
-        </td>
-        <td class="key-created">
-          <div class="label">{{i18n 'admin.api.created'}}</div>
-          {{format-date k.created_at}}
-        </td>
-        <td class="key-last-used">
-          <div class="label">{{i18n 'admin.api.last_used'}}</div>
-          {{#if k.last_used_at}}
-            {{format-date k.last_used_at}}
-          {{else}}
-            {{i18n "admin.api.never_used"}}
-          {{/if}}
-        </td>
-        <td class="key-controls">
-          {{d-button action=(route-action "show" k) icon="far-eye" title="admin.api.show_details"}}
-          {{#if k.revoked_at}}
-            {{d-button
-              action=(action "undoRevokeKey")
-              actionParam=k icon="undo"
-              title="admin.api.undo_revoke"}}
-          {{else}}
-            {{d-button
-              class="btn-danger"
-              action=(action "revokeKey")
-              actionParam=k
-              icon="times"
-              title="admin.api.revoke"}}
-          {{/if}}
-        </td>
-      </tr>
-    {{/each}}
-  </tbody>
+    <thead>
+      <th>{{i18n "admin.api.key"}}</th>
+      <th>{{i18n "admin.api.description"}}</th>
+      <th>{{i18n "admin.api.user"}}</th>
+      <th>{{i18n "admin.api.created"}}</th>
+      <th>{{i18n "admin.api.last_used"}}</th>
+      <th>&nbsp;</th>
+    </thead>
+    <tbody>
+      {{#each model as |k|}}
+        <tr class={{if k.revoked_at "revoked"}}>
+          <td class="key">
+            {{#if k.revoked_at}}{{d-icon 'times-circle'}}{{/if}}
+            {{k.truncatedKey}}
+          </td>
+          <td class="key-description">
+            {{k.shortDescription}}
+          </td>
+          <td class="key-user">
+            <div class="label">{{i18n 'admin.api.user'}}</div>
+            {{#if k.user}}
+              {{#link-to "adminUser" k.user}}
+                {{avatar k.user imageSize="small"}}
+              {{/link-to}}
+            {{else}}
+              {{i18n "admin.api.all_users"}}
+            {{/if}}
+          </td>
+          <td class="key-created">
+            <div class="label">{{i18n 'admin.api.created'}}</div>
+            {{format-date k.created_at}}
+          </td>
+          <td class="key-last-used">
+            <div class="label">{{i18n 'admin.api.last_used'}}</div>
+            {{#if k.last_used_at}}
+              {{format-date k.last_used_at}}
+            {{else}}
+              {{i18n "admin.api.never_used"}}
+            {{/if}}
+          </td>
+          <td class="key-controls">
+            {{d-button action=(route-action "show" k) icon="far-eye" title="admin.api.show_details"}}
+            {{#if k.revoked_at}}
+              {{d-button
+                action=(action "undoRevokeKey")
+                actionParam=k icon="undo"
+                title="admin.api.undo_revoke"}}
+            {{else}}
+              {{d-button
+                class="btn-danger"
+                action=(action "revokeKey")
+                actionParam=k
+                icon="times"
+                title="admin.api.revoke"}}
+            {{/if}}
+          </td>
+        </tr>
+      {{/each}}
+    </tbody>
   </table>
 {{else}}
   <p>{{i18n "admin.api.none"}}</p>

[... diff too long, it was truncated ...]

GitHub sha: b66b277d

This commit appears in #9408 which was approved by eviltrout. It was merged by jjaffeux.