Commit c4263dfbaff03711b7f18343d8e8bdc380242501

Authored by Dmitriy Zaporozhets
1 parent ae4ae2b2

Fix BackgroundJobs page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 6 additions and 12 deletions   Show diff stats
app/views/admin/background_jobs/show.html.haml
... ... @@ -14,27 +14,21 @@
14 14 %table.table
15 15 %thead
16 16 %th USER
17   - %th
18 17 %th PID
19   - %th
20 18 %th CPU
21   - %th
22 19 %th MEM
23   - %th
24 20 %th STATE
25   - %th
26 21 %th START
27   - %th
28 22 %th COMMAND
29   - %th
30   - - @sidekiq_processes.split("\n").each do |process|
  23 + %tbody
  24 + - @sidekiq_processes.each do |process|
31 25 - next unless process.match(/(sidekiq \d+\.\d+\.\d+.+$)/)
32   - - data = process.gsub!(/\s+/m, '|').strip.split('|')
  26 + - data = process.strip.split(' ')
33 27 %tr
34   - - 6.times do
  28 + %td= Settings.gitlab.user
  29 + - 5.times do
35 30 %td= data.shift
36   - %td
37   - %td= data.join(" ")
  31 + %td= data.join(' ')
38 32  
39 33 .clearfix
40 34 %p
... ...