From 8e4c824e40c5e219420fea606f4d316bae1e44cb Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 4 May 2015 17:40:12 +0200 Subject: [PATCH] SONAR-5851 apply feedback --- .../quality-profile-changelog.hbs | 13 ++- .../quality-profiles-actions.hbs | 15 +-- .../quality-profiles-profile-details.hbs | 96 ++++++++++--------- .../quality-profiles-profile.hbs | 4 +- .../profile-changelog-view.js | 8 +- .../src/main/js/quality-profiles/profile.js | 7 ++ .../sonar-web/src/test/js/quality-profiles.js | 7 +- 7 files changed, 84 insertions(+), 66 deletions(-) diff --git a/server/sonar-web/src/main/hbs/quality-profiles/quality-profile-changelog.hbs b/server/sonar-web/src/main/hbs/quality-profiles/quality-profile-changelog.hbs index dfcd86e388d..92d87282448 100644 --- a/server/sonar-web/src/main/hbs/quality-profiles/quality-profile-changelog.hbs +++ b/server/sonar-web/src/main/hbs/quality-profiles/quality-profile-changelog.hbs @@ -48,11 +48,14 @@ - {{#unlessLength events totalEvents}} -

- {{t 'show_more'}} -

- {{/unlessLength}} + +

+ {{#unlessLength events totalEvents}} + {{t 'show_more'}} + {{/unlessLength}} + {{t 'hide'}} +

+ {{else}} {{#notNull totalEvents}}
{{t 'quality_profiles.changelog.empty'}}
diff --git a/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-actions.hbs b/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-actions.hbs index 24fa188c899..2d887af6df3 100644 --- a/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-actions.hbs +++ b/server/sonar-web/src/main/hbs/quality-profiles/quality-profiles-actions.hbs @@ -1,15 +1,12 @@