summaryrefslogtreecommitdiff
path: root/app/controllers/nodes_controller.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-27 02:53:21 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-27 02:53:21 +0200
commit180b5feba092db1339f7bb3217e91f0b22239bc5 (patch)
treeed2912eb568639d027e2d54bc4f28c7a9406f7e0 /app/controllers/nodes_controller.rb
parent102c33264fd1463cd88aa8245413e7b331dd9632 (diff)
Surface held locks in the dashboard's work-in-progress widget
A lock with no draft or autosave behind it was invisible to everyone including its holder, until the next editor collided with it. work_in_progress now admits those nodes, and the widget names the holder rather than the last editor on any locked row. Also flips the ordering to stalest-first, so a backlog reads as a queue rather than a feed, and gives the heading a real total: the count came from the already-limited relation and could never exceed five.
Diffstat (limited to 'app/controllers/nodes_controller.rb')
-rw-r--r--app/controllers/nodes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index 50b30881..2a2cde33 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -231,7 +231,7 @@ class NodesController < ApplicationController
231 231
232 # Filter functions for admin views 232 # Filter functions for admin views
233 def drafts 233 def drafts
234 @nodes = index_matching(Node.drafts_and_autosaves) 234 @nodes = index_matching(Node.work_in_progress)
235 end 235 end
236 236
237 def mine 237 def mine