Adds a CSS class for reorder links (#15307).

git-svn-id: http://svn.redmine.org/redmine/trunk@12265 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-11-10 13:24:07 +00:00
parent 3096b6183e
commit 8525e56c33
7 changed files with 7 additions and 6 deletions

View File

@ -20,7 +20,7 @@
<td align="center"><%= checked_image custom_field.is_for_all? %></td>
<td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
<% end %>
<td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td>
<td class="reorder"><%= reorder_links('custom_field', {:action => 'update', :id => custom_field}, :put) %></td>
<td class="buttons">
<%= delete_link custom_field_path(custom_field) %>
</td>

View File

@ -18,7 +18,7 @@
<td><%= link_to h(enumeration), edit_enumeration_path(enumeration) %></td>
<td class="center" style="width:15%;"><%= checked_image enumeration.is_default? %></td>
<td class="center" style="width:15%;"><%= checked_image enumeration.active? %></td>
<td align="center" style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td>
<td class="reorder"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td>
<td class="buttons">
<%= delete_link enumeration_path(enumeration) %>
</td>

View File

@ -25,7 +25,7 @@
<% end %>
<td align="center"><%= checked_image status.is_default? %></td>
<td align="center"><%= checked_image status.is_closed? %></td>
<td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}, :put) %></td>
<td class="reorder"><%= reorder_links('issue_status', {:action => 'update', :id => status}, :put) %></td>
<td class="buttons">
<%= delete_link issue_status_path(status) %>
</td>

View File

@ -12,7 +12,7 @@
<tr class="<%= cycle 'odd', 'even' %>">
<td style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
<td><%=h board.description %></td>
<td align="center">
<td class="reorder">
<% if authorize_for("boards", "edit") %>
<%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
<% end %>

View File

@ -15,7 +15,7 @@
<% for role in @roles %>
<tr class="<%= cycle("odd", "even") %>">
<td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
<td align="center" style="width:15%;">
<td class="reorder">
<% unless role.builtin? %>
<%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
<% end %>

View File

@ -23,7 +23,7 @@
</span>
<% end %>
</td>
<td align="center" style="width:15%;">
<td class="reorder">
<%= reorder_links('tracker', {:action => 'update', :id => tracker}, :put) %>
</td>
<td class="buttons">

View File

@ -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; }