Commit e6bba9be4f0400471170e9d86f3ef15344416f2f

Authored by VSizov
1 parent df016465

icon for handler of sortable

app/assets/images/move.png 0 → 100644

260 Bytes

app/assets/stylesheets/projects.css.scss
... ... @@ -543,3 +543,9 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
543 543 .handle:hover{
544 544 cursor: move;
545 545 }
  546 +
  547 +.handle{
  548 + width: 12px;
  549 + height: 12px;
  550 + padding: 10px;
  551 +}
... ...
app/views/issues/_show.html.haml
1 1 %tr{ :id => dom_id(issue), :class => "issue", :url => project_issue_path(@project, issue) }
2 2 %td
3   - = image_tag gravatar_icon(issue.assignee.email), :class => ["left", "handle"], :width => 40, :style => "padding:0 5px;"
  3 + = image_tag "move.png" , :class => [:handle, :left]
  4 + = image_tag gravatar_icon(issue.assignee.email), :class => "left", :width => 40, :style => "padding:0 5px;"
4 5 = truncate issue.assignee.name, :lenght => 20
5 6 %td ##{issue.id}
6 7 %td= html_escape issue.title
... ...
db/migrate/20111015154310_add_position_to_issues.rb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +class AddPositionToIssues < ActiveRecord::Migration
  2 + def change
  3 + add_column :issues, :position, :integer, :default => 0
  4 + end
  5 +end
... ...