odd-even removed from admin list, sort order with symbols

This commit is contained in:
Alexander Meindl 2019-02-28 17:20:52 +01:00
parent 68b6c329b9
commit 1bba302262
3 changed files with 6 additions and 6 deletions

View File

@ -19,10 +19,10 @@ class AdditionalsAssignToMeController < ApplicationController
return redirect_to(issue_path(@issue))
end
last_journal = @issue.journals.visible.order('created_on').last
last_journal = @issue.journals.visible.order(:created_on).last
return redirect_to(issue_path(@issue)) if last_journal.nil?
last_journal = @issue.journals.visible.order('created_on').last
last_journal = @issue.journals.visible.order(:created_on).last
redirect_to "#{issue_path(@issue)}#change-#{last_journal.id}"
end

View File

@ -22,11 +22,11 @@ class AdditionalsChangeStatusController < ApplicationController
return redirect_to(issue_path(@issue))
end
last_journal = @issue.journals.visible.order('created_on').last
last_journal = @issue.journals.visible.order(:created_on).last
return redirect_to(issue_path(@issue)) if last_journal.nil?
last_journal = @issue.journals.visible.order('created_on').last
last_journal = @issue.journals.visible.order(:created_on).last
redirect_to "#{issue_path(@issue)}#change-#{last_journal.id}"
end

View File

@ -1,10 +1,10 @@
table.list
tr class="#{cycle('odd', 'even')}"
tr
td.name
= "#{l(:label_system_info)}:"
td.name
= system_info
tr class="#{cycle('odd', 'even')}"
tr
td.name
= "#{l(:label_uptime)}:"
td.name