From bf69f3f6b6c3f35582d17c2b6c344c5986f5b480 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 6 Jul 2015 13:52:11 +0200 Subject: [PATCH] SONAR-6661 improve the layout --- .../_update-center-plugin-actions.hbs | 2 +- .../templates/update-center-plugin.hbs | 200 +++++++++--------- .../templates/update-center-system-update.hbs | 102 ++++----- server/sonar-web/src/main/less/init/misc.less | 5 + 4 files changed, 161 insertions(+), 148 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/update-center/templates/_update-center-plugin-actions.hbs b/server/sonar-web/src/main/js/apps/update-center/templates/_update-center-plugin-actions.hbs index 63bf15f5453..5b67a9d6e48 100644 --- a/server/sonar-web/src/main/js/apps/update-center/templates/_update-center-plugin-actions.hbs +++ b/server/sonar-web/src/main/js/apps/update-center/templates/_update-center-plugin-actions.hbs @@ -17,7 +17,7 @@

diff --git a/server/sonar-web/src/main/js/apps/update-center/templates/update-center-plugin.hbs b/server/sonar-web/src/main/js/apps/update-center/templates/update-center-plugin.hbs index b5660450755..eff32440761 100644 --- a/server/sonar-web/src/main/js/apps/update-center/templates/update-center-plugin.hbs +++ b/server/sonar-web/src/main/js/apps/update-center/templates/update-center-plugin.hbs @@ -1,106 +1,110 @@ -
-
- {{name}} - {{#if category}} - {{category}} - {{/if}} -
-
{{{description}}}
-
+ + + -
-
- Versions -
- -
+ -
-
-
- {{#eq _status 'installing'}} -

{{#if version}}Update{{else}}Install{{/if}} Pending

- {{/eq}} +
+ +
+
+ {{name}} + {{#if category}} + {{category}} + {{/if}} +
+
{{{description}}}
+
+
+ Versions +
+
    + {{#if version}} +
  • + {{version}} installed +
  • + {{/if}} + {{#notEmpty updates}} +
  • + Updates: +
  • + {{#each updates}} +
  • +
    + {{#notEq status 'COMPATIBLE'}} + {{release.version}} + {{else}} + {{release.version}} + {{/notEq}} +
    +
    + {{{release.description}}} + +
    +
  • + {{/each}} + {{/notEmpty}} + {{#if release}} +
  • +
    + {{release.version}} +
    +
    + {{{release.description}}} + + {{#notEmpty update.requires}} +

    + Installing this plugin will also install: {{#each update.requires}} {{name}}{{/each}} +

    + {{/notEmpty}} +
    +
  • + {{/if}} +
+
+
    + {{#any homepageUrl issueTrackerUrl termsAndConditionsUrl}} +
  • + +
  • + {{/any}} - {{#if license}} -
  • Licensed under {{license}}
  • - {{/if}} + {{#if license}} +
  • Licensed under {{license}}
  • + {{/if}} - {{#if organizationName}} -
  • - Developed by - {{#if organizationUrl}} - {{organizationName}} - {{else}} - {{organizationName}} + {{#if organizationName}} +
  • + Developed by + {{#if organizationUrl}} + {{organizationName}} + {{else}} + {{organizationName}} + {{/if}} +
  • {{/if}} - - {{/if}} -
- + +
+ {{#eq _status 'installing'}} +

{{#if version}}Update{{else}}Install{{/if}} Pending

+ {{/eq}} - {{#eq _status 'uninstalling'}} -

Uninstall Pending

- {{/eq}} + {{#eq _status 'uninstalling'}} +

Uninstall Pending

+ {{/eq}} - {{#unless _status}} - - {{> '_update-center-plugin-actions'}} - {{/unless}} - + {{#unless _status}} + + {{> '_update-center-plugin-actions'}} + {{/unless}} +
diff --git a/server/sonar-web/src/main/js/apps/update-center/templates/update-center-system-update.hbs b/server/sonar-web/src/main/js/apps/update-center/templates/update-center-system-update.hbs index 09d8b04ece0..0096dea967e 100644 --- a/server/sonar-web/src/main/js/apps/update-center/templates/update-center-system-update.hbs +++ b/server/sonar-web/src/main/js/apps/update-center/templates/update-center-system-update.hbs @@ -1,52 +1,56 @@ -
- - - - - - - -
+ + + -
-
- SonarQube {{version}} - System Upgrade -
-
{{{description}}}
+
-
-
- How to upgrade -
- -
+ + +
+ + + + + + + + +
+ SonarQube {{version}} + System Upgrade +
+
{{{description}}}
-
    - {{#if changeLogUrl}} -
  • - Release Notes -
  • - {{/if}} - {{#if releaseDate}} -
  • Released: {{d releaseDate}}
  • - {{/if}} -
- +
    + {{#if changeLogUrl}} +
  • + Release Notes +
  • + {{/if}} + {{#if releaseDate}} +
  • Released: {{d releaseDate}}
  • + {{/if}} +
+
+
+ How to upgrade +
+
    +
  • Stop SonarQube
  • +
  • Download and install + SonarQube {{version}} after having carefully read the + upgrade guide. +
  • + {{#each plugins.incompatible}} +
  • + Uninstall the plugin {{name}} which is not compatible with SonarQube {{../version}}. +
  • + {{/each}} + {{#each plugins.requireUpdate}} +
  • + Replace current version of plugin {{name}} by version {{version}}. +
  • + {{/each}} +
  • Start SonarQube
  • +
+
diff --git a/server/sonar-web/src/main/less/init/misc.less b/server/sonar-web/src/main/less/init/misc.less index b5e41704b74..05d550772de 100644 --- a/server/sonar-web/src/main/less/init/misc.less +++ b/server/sonar-web/src/main/less/init/misc.less @@ -60,6 +60,11 @@ td.spacer-right { padding-right: 8px; } td.spacer-bottom { padding-bottom: 8px; } td.spacer-top { padding-top: 8px; } +td.big-spacer-left { padding-left: 16px; } +td.big-spacer-right { padding-right: 16px; } +td.big-spacer-bottom { padding-bottom: 16px; } +td.big-spacer-top { padding-top: 16px; } + .pull-left { float: left !important; } .pull-right { float: right !important; } -- 2.39.5