restored sortable ability

This commit is contained in:
Dmitriy Zaporozhets 2011-11-07 22:48:55 +02:00
parent 32abaa33f8
commit 1c543bdfa8
2 changed files with 6 additions and 4 deletions

View file

@ -1,2 +1,7 @@
module IssuesHelper module IssuesHelper
def sort_class
if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
"handle"
end
end
end end

View file

@ -1,9 +1,6 @@
%tr{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(@project, issue) } %tr{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(@project, issue) }
-#- if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
%td
= image_tag "move.png" , :class => [:handle, :left]
%td %td
%strong.issue-number= "##{issue.id}" %strong.issue-number{:class => sort_class}= "##{issue.id}"
%span %span
= truncate(html_escape(issue.title), :length => fixed_mode? ? 100 : 200) = truncate(html_escape(issue.title), :length => fixed_mode? ? 100 : 200)
%br %br