Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_migration.html.haml « background_migrations « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ddb2eb27705273319f7caeaa500bf01e78bf80a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%tr{ role: 'row' }
  %td{ role: 'cell', data: { label: _('Migration') } }= migration.job_class_name + ': ' + migration.table_name
  %td{ role: 'cell', data: { label: _('Progress') } }
    - progress = batched_migration_progress(migration, @successful_rows_counts[migration.id])
    - if progress
      = number_to_percentage(progress, precision: 2)
    - else
      = _('Unknown')
  %td{ role: 'cell', data: { label: _('Status') } }
    %span.badge.badge-pill.gl-badge.sm{ class: batched_migration_status_badge_class_name(migration) }= migration.status.humanize
  %td{ role: 'cell', data: { label: _('Action') } }
    - if migration.active?
      = button_to pause_admin_background_migration_path(migration),
        class: 'gl-button btn btn-icon has-tooltip', title: _('Pause'), 'aria-label' => _('Pause') do
        = sprite_icon('pause', css_class: 'gl-button-icon gl-icon')
    - elsif migration.paused?
      = button_to resume_admin_background_migration_path(migration),
        class: 'gl-button btn btn-icon has-tooltip', title: _('Resume'), 'aria-label' => _('Resume') do
        = sprite_icon('play', css_class: 'gl-button-icon gl-icon')