icon for handler of sortable

3-1-stable
VSizov 2011-10-15 20:41:38 +03:00
parent df016465cd
commit e6bba9be4f
4 changed files with 13 additions and 1 deletions

BIN
app/assets/images/move.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

View File

@ -543,3 +543,9 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
.handle:hover{
cursor: move;
}
.handle{
width: 12px;
height: 12px;
padding: 10px;
}

View File

@ -1,6 +1,7 @@
%tr{ :id => dom_id(issue), :class => "issue", :url => project_issue_path(@project, issue) }
%td
= image_tag gravatar_icon(issue.assignee.email), :class => ["left", "handle"], :width => 40, :style => "padding:0 5px;"
= image_tag "move.png" , :class => [:handle, :left]
= image_tag gravatar_icon(issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
= truncate issue.assignee.name, :lenght => 20
%td ##{issue.id}
%td= html_escape issue.title

View File

@ -0,0 +1,5 @@
class AddPositionToIssues < ActiveRecord::Migration
def change
add_column :issues, :position, :integer, :default => 0
end
end