diff options
author | VSizov <fk@sphere.com> | 2011-10-15 21:41:38 +0400 |
---|---|---|
committer | VSizov <fk@sphere.com> | 2011-10-15 21:41:38 +0400 |
commit | 3226b4fe7a00b3543ac3c81d1475dd860adaff98 (patch) | |
tree | 6761ca63f811722ab36dd00ea57a4121dbdf8d61 | |
parent | 5d7421af4e9395aa7ea9ae32540a685a0af44049 (diff) |
icon for handler of sortable
-rw-r--r-- | app/assets/images/move.png | bin | 0 -> 260 bytes | |||
-rw-r--r-- | app/assets/stylesheets/projects.css.scss | 6 | ||||
-rw-r--r-- | app/views/issues/_show.html.haml | 3 | ||||
-rw-r--r-- | db/migrate/20111015154310_add_position_to_issues.rb | 5 |
4 files changed, 13 insertions, 1 deletions
diff --git a/app/assets/images/move.png b/app/assets/images/move.png Binary files differnew file mode 100644 index 00000000000..9d2d55ddf0b --- /dev/null +++ b/app/assets/images/move.png diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index fdfd2b8653b..bc15d8e2c12 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -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; +} diff --git a/app/views/issues/_show.html.haml b/app/views/issues/_show.html.haml index cf01020806a..30157257ff5 100644 --- a/app/views/issues/_show.html.haml +++ b/app/views/issues/_show.html.haml @@ -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 diff --git a/db/migrate/20111015154310_add_position_to_issues.rb b/db/migrate/20111015154310_add_position_to_issues.rb new file mode 100644 index 00000000000..41451a0cabb --- /dev/null +++ b/db/migrate/20111015154310_add_position_to_issues.rb @@ -0,0 +1,5 @@ +class AddPositionToIssues < ActiveRecord::Migration + def change + add_column :issues, :position, :integer, :default => 0 + end +end |