diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-18 15:46:27 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-03-18 17:57:36 +0100 |
commit | 785da30e37911001764c09cc78835c969849a06e (patch) | |
tree | 7bcbf4e14737a22771cab17fe234b7f029fae790 /sonar-server | |
parent | d79c15d37b89d887c349e5066bf01e62659c2596 (diff) | |
download | sonarqube-785da30e37911001764c09cc78835c969849a06e.tar.gz sonarqube-785da30e37911001764c09cc78835c969849a06e.zip |
SONAR-5092 Use consistent styles across message boxes
Diffstat (limited to 'sonar-server')
3 files changed, 17 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/quality_gates/templates/_quality_gate_detail_projects_template.hbs.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/quality_gates/templates/_quality_gate_detail_projects_template.hbs.erb index 22487657e3b..7ea0b397156 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/quality_gates/templates/_quality_gate_detail_projects_template.hbs.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/quality_gates/templates/_quality_gate_detail_projects_template.hbs.erb @@ -2,11 +2,13 @@ <div class="quality-gate-section-name">{{t 'quality_gates.projects'}}</div> {{#if default}} + <p class="quality-gate-default-message"> {{#if canEdit}} - <p>{{t 'quality_gates.projects_for_default.edit'}}</p> + {{t 'quality_gates.projects_for_default.edit'}} {{else}} - <p>{{t 'quality_gates.projects_for_default'}}</p> + {{t 'quality_gates.projects_for_default'}} {{/if}} + </p> {{else}} <div id="select-list-projects"></div> {{/if}} diff --git a/sonar-server/src/main/webapp/stylesheets/quality-gates.css b/sonar-server/src/main/webapp/stylesheets/quality-gates.css index dc1db977142..6a18e125df9 100644 --- a/sonar-server/src/main/webapp/stylesheets/quality-gates.css +++ b/sonar-server/src/main/webapp/stylesheets/quality-gates.css @@ -86,3 +86,8 @@ .quality-gate-condition-actions { position: relative; } +.quality-gate-default-message { + padding: 6px 5px; + border: 1px solid #ddd; + background-color: #efefef; +} diff --git a/sonar-server/src/main/webapp/stylesheets/quality-gates.less b/sonar-server/src/main/webapp/stylesheets/quality-gates.less index a0293d5e1b3..4d07ee8f986 100644 --- a/sonar-server/src/main/webapp/stylesheets/quality-gates.less +++ b/sonar-server/src/main/webapp/stylesheets/quality-gates.less @@ -66,7 +66,7 @@ &.empty { cursor: default; } - + .line { padding-top: 2px; padding-bottom: 2px; @@ -76,7 +76,7 @@ text-transform: lowercase; } } - } + } } @@ -108,3 +108,9 @@ .quality-gate-condition-actions { position: relative; } + +.quality-gate-default-message { + padding: 6px 5px; + border: 1px solid #ddd; + background-color: #efefef; +} |