icon for handler of sortable
This commit is contained in:
parent
df016465cd
commit
e6bba9be4f
4 changed files with 13 additions and 1 deletions
BIN
app/assets/images/move.png
Normal file
BIN
app/assets/images/move.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 260 B |
|
@ -543,3 +543,9 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
|
||||||
.handle:hover{
|
.handle:hover{
|
||||||
cursor: move;
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.handle{
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
%tr{ :id => dom_id(issue), :class => "issue", :url => project_issue_path(@project, issue) }
|
%tr{ :id => dom_id(issue), :class => "issue", :url => project_issue_path(@project, issue) }
|
||||||
%td
|
%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
|
= truncate issue.assignee.name, :lenght => 20
|
||||||
%td ##{issue.id}
|
%td ##{issue.id}
|
||||||
%td= html_escape issue.title
|
%td= html_escape issue.title
|
||||||
|
|
5
db/migrate/20111015154310_add_position_to_issues.rb
Normal file
5
db/migrate/20111015154310_add_position_to_issues.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddPositionToIssues < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :issues, :position, :integer, :default => 0
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue