File: show.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (39 lines) | stat: -rw-r--r-- 2,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
- add_to_breadcrumbs s_('BackgroundMigrations|Background migrations'), admin_background_migrations_path(database: params[:database])
- breadcrumb_title @migration.id
- page_title @migration.job_class_name , s_('BackgroundMigrations|Background migrations')
- @breadcrumb_link = admin_background_migration_path(@migration, database: params[:database])

%h3= @migration.job_class_name + ': ' + @migration.table_name

.tab-content.gl-tab-content
  .tab-pane.active{ role: 'tabpanel' }
    %table.table.b-table.gl-table.b-table-stacked-md{ role: 'table' }
      %thead{ role: 'rowgroup' }
        %tr{ role: 'row' }
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Id')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Min Value')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Max Value')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Batch size')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Sub-batch size')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Interval')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Pause time (ms)')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Created on')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Last updated')
          %th.table-th-transparent.border-bottom{ role: 'cell' }= _('Status')
      %tbody{ role: 'rowgroup' }
        = render partial: 'migration_full_information', migration: @migration

- if @migration.batched_jobs.with_status(:failed).any?
  %h5= s_('BackgroundMigrations|Failed jobs:')

  %table.table.b-table.gl-table.b-table-stacked-md{ role: 'table' }
    %thead{ role: 'rowgroup' }
      %tr{ role: 'row' }
        %th{ role: 'cell' }= _('Id')
        %th{ role: 'cell' }= s_('BackgroundMigrations|Started at')
        %th{ role: 'cell' }= s_('BackgroundMigrations|Finished at')
        %th{ role: 'cell' }= s_('BackgroundMigrations|Batch size')
    %tbody{ role: 'rowgroup' }
      = render partial: 'job', collection: @failed_jobs

  = paginate_collection @failed_jobs