From 26236729ae7c8b6deab99328a4e3281bdc45ce07 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 26 Feb 2014 09:17:03 +0100 Subject: [PATCH] Small visual adjustments on the issues page --- .../main/webapp/WEB-INF/app/views/issue/_assign_form.html.erb | 4 ++-- .../main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb | 4 ++-- .../views/issues/templates/_issue_detail_assign_form.hbs.erb | 2 +- .../views/issues/templates/_issue_detail_plan_form.hbs.erb | 4 ++-- sonar-server/src/main/webapp/javascripts/navigator/issues.js | 2 +- sonar-server/src/main/webapp/stylesheets/style.css | 3 ++- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_assign_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_assign_form.html.erb index c1c12f57770..e80b3a69106 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_assign_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_assign_form.html.erb @@ -15,9 +15,9 @@ -%>   - <%= link_to_function message('cancel'), 'closeIssueForm(this)' -%>  + <%= link_to_function message('cancel'), 'closeIssueForm(this)', :class => 'action' -%>  - \ No newline at end of file + diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb index 73ce039b4cf..802fcf522e1 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_plan_form.html.erb @@ -28,8 +28,8 @@ <%= dropdown_tag('plan', plan_options, {:show_search_box => false}, {:id => plans_select_box_id}) -%> - - <%= link_to_function message('cancel'), 'closeIssueForm(this)' -%> +   + <%= link_to_function message('cancel'), 'closeIssueForm(this)', :class => 'action' -%> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_assign_form.hbs.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_assign_form.hbs.erb index 24378e8cd25..e7c78994625 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_assign_form.hbs.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_assign_form.hbs.erb @@ -3,7 +3,7 @@ - +   <%= message('cancel') -%> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_plan_form.hbs.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_plan_form.hbs.erb index ad9a299449f..33e24157cbe 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_plan_form.hbs.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_plan_form.hbs.erb @@ -10,7 +10,7 @@ {{/notEq}} {{/each}} - +   {{else}} <% if is_admin? %> <%= message('issue.plan.error.plan_must_be_created_first_for_admin') -%> @@ -18,5 +18,5 @@ <%= message('issue.plan.error.plan_must_be_created_first_for_other') -%> <% end %> {{/if}} - <%= message('cancel') -%> + <%= message('cancel') -%> diff --git a/sonar-server/src/main/webapp/javascripts/navigator/issues.js b/sonar-server/src/main/webapp/javascripts/navigator/issues.js index 847269b67e3..1e754196a31 100644 --- a/sonar-server/src/main/webapp/javascripts/navigator/issues.js +++ b/sonar-server/src/main/webapp/javascripts/navigator/issues.js @@ -563,7 +563,7 @@ jQuery(function() { onRender: function() { var format = function(state) { if (!state.id) return state.text; // optgroup - return '' + state.text; + return ' ' + state.text; } this.ui.select.select2({ diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 0ee49feb93e..fa1203973c2 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -869,7 +869,8 @@ th.operations, td.operations { .code-issue-form input[type=submit], .code-issue-form input[type=button], -.code-issue-form button { +.code-issue-form button, +.code-issue-form .action { vertical-align: middle; } -- 2.39.5