From 3226b4fe7a00b3543ac3c81d1475dd860adaff98 Mon Sep 17 00:00:00 2001 From: VSizov Date: Sat, 15 Oct 2011 20:41:38 +0300 Subject: [PATCH] icon for handler of sortable --- app/assets/images/move.png | Bin 0 -> 260 bytes app/assets/stylesheets/projects.css.scss | 6 ++++++ app/views/issues/_show.html.haml | 3 ++- .../20111015154310_add_position_to_issues.rb | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app/assets/images/move.png create mode 100644 db/migrate/20111015154310_add_position_to_issues.rb diff --git a/app/assets/images/move.png b/app/assets/images/move.png new file mode 100644 index 0000000000000000000000000000000000000000..9d2d55ddf0b460d8effa80bca82340f5a6ca3341 GIT binary patch literal 260 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}k|nMYCBgY=CFO}lsSJ)O z`AMk?p1FzXsX?iUDV2pMQ*9U+7?yduIEF+Vemngl=K%#Cm%9fhT4lMt@(?@tP5Fw; z#nXGJTnUDUkD3p2OX~6~7fro#UF~w_E;>-z)I-3IhWJ NgQu&X%Q~loCIFn@W)T1Y literal 0 HcmV?d00001 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 -- GitLab