projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix display order of recent jobs and pipelines. closes #3148
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
application_controller.rb
diff --git
a/apps/workbench/app/controllers/application_controller.rb
b/apps/workbench/app/controllers/application_controller.rb
index f6c782d8f62fcb5799de3db01b5f7b5c98bf1e21..df57e9e71fa85396d95ee35ed887b466f7d3fb9d 100644
(file)
--- a/
apps/workbench/app/controllers/application_controller.rb
+++ b/
apps/workbench/app/controllers/application_controller.rb
@@
-617,8
+617,8
@@
class ApplicationController < ActionController::Base
(Job.limit(10) |
PipelineInstance.limit(10)).
sort_by do |x|
(Job.limit(10) |
PipelineInstance.limit(10)).
sort_by do |x|
-
x.finished_at || x.started_at || x.created_at rescue
x.created_at
- end
+
(x.finished_at || x.started_at rescue nil) || x.modified_at ||
x.created_at
+ end
.reverse
end
helper_method :my_project_tree
end
helper_method :my_project_tree