Skip to content

Commit

Permalink
suppot desc
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Sep 23, 2024
1 parent 805104c commit c152f48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/job/panel/jobs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def set_class_names

def q_params
q = { queue_name: params[:queue_id] }
q.merge! params.permit(:class_name)
q.merge! params.permit(:class_name, 'finished_at-desc')
q
end

Expand Down
4 changes: 3 additions & 1 deletion app/views/job/panel/jobs/_index/_index_thead.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
</th>
<th>
<p><%= SolidQueue::Job.human_attribute_name(:job_class) %></p>
<p class="text-success"><%= SolidQueue::Job.human_attribute_name(:finished_at) %></p>
<p class="text-success">
<%= link_to SolidQueue::Job.human_attribute_name(:finished_at), filter_params('finished_at-desc': 1) %>
</p>
</th>
<th><%= SolidQueue::Job.human_attribute_name(:arguments) %></th>

0 comments on commit c152f48

Please sign in to comment.