restored sortable ability
This commit is contained in:
parent
32abaa33f8
commit
1c543bdfa8
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue