From 8525e56c339072ee116c956fcc7d8365f58560a8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Nov 2013 13:24:07 +0000 Subject: [PATCH] Adds a CSS class for reorder links (#15307). git-svn-id: http://svn.redmine.org/redmine/trunk@12265 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/_index.html.erb | 2 +- app/views/enumerations/index.html.erb | 2 +- app/views/issue_statuses/index.html.erb | 2 +- app/views/projects/settings/_boards.html.erb | 2 +- app/views/roles/index.html.erb | 2 +- app/views/trackers/index.html.erb | 2 +- public/stylesheets/application.css | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/custom_fields/_index.html.erb b/app/views/custom_fields/_index.html.erb index 79fc09ae5..afee212c9 100644 --- a/app/views/custom_fields/_index.html.erb +++ b/app/views/custom_fields/_index.html.erb @@ -20,7 +20,7 @@ <%= checked_image custom_field.is_for_all? %> <%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %> <% end %> - <%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %> + <%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %> <%= delete_link custom_field_path(custom_field) %> diff --git a/app/views/enumerations/index.html.erb b/app/views/enumerations/index.html.erb index 22311f159..d8aa921c2 100644 --- a/app/views/enumerations/index.html.erb +++ b/app/views/enumerations/index.html.erb @@ -18,7 +18,7 @@ <%= link_to h(enumeration), edit_enumeration_path(enumeration) %> <%= checked_image enumeration.is_default? %> <%= checked_image enumeration.active? %> - <%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %> + <%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %> <%= delete_link enumeration_path(enumeration) %> diff --git a/app/views/issue_statuses/index.html.erb b/app/views/issue_statuses/index.html.erb index dea9fb3cb..61d0c616b 100644 --- a/app/views/issue_statuses/index.html.erb +++ b/app/views/issue_statuses/index.html.erb @@ -25,7 +25,7 @@ <% end %> <%= checked_image status.is_default? %> <%= checked_image status.is_closed? %> - <%= reorder_links('issue_status', {:action => 'update', :id => status}, :put) %> + <%= reorder_links('issue_status', {:action => 'update', :id => status}, :put) %> <%= delete_link issue_status_path(status) %> diff --git a/app/views/projects/settings/_boards.html.erb b/app/views/projects/settings/_boards.html.erb index dd8393cda..c1e023efe 100644 --- a/app/views/projects/settings/_boards.html.erb +++ b/app/views/projects/settings/_boards.html.erb @@ -12,7 +12,7 @@ <%= link_to board.name, project_board_path(@project, board) %> <%=h board.description %> - + <% if authorize_for("boards", "edit") %> <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %> <% end %> diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb index 4240d096b..4f3fb2b4e 100644 --- a/app/views/roles/index.html.erb +++ b/app/views/roles/index.html.erb @@ -15,7 +15,7 @@ <% for role in @roles %> "> <%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %> - + <% unless role.builtin? %> <%= reorder_links('role', {:action => 'update', :id => role}, :put) %> <% end %> diff --git a/app/views/trackers/index.html.erb b/app/views/trackers/index.html.erb index 469ff7945..0d6e11898 100644 --- a/app/views/trackers/index.html.erb +++ b/app/views/trackers/index.html.erb @@ -23,7 +23,7 @@ <% end %> - + <%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 2823229f2..dc5516182 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -129,6 +129,7 @@ table.list td.checkbox { width: 15px; padding: 2px 0 0 0; } table.list td.checkbox input {padding:0px;} table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; } table.list td.buttons a { padding-right: 0.6em; } +table.list td.reorder {width:15%; white-space:nowrap; text-align:center; } table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; } tr.project td.name a { white-space:nowrap; }