debian-mirror-gitlab/app/views/admin/background_migrations/index.html.haml

34 lines
1.8 KiB
Text
Raw Normal View History

2021-09-04 01:27:46 +05:30
- page_title _('Background Migrations')
.tabs.gl-tabs
%div
%ul.nav.gl-tabs-nav{ role: 'tablist' }
- active_tab_classes = ['gl-tab-nav-item-active', 'gl-tab-nav-item-active-indigo']
%li.nav-item{ role: 'presentation' }
%a.nav-link.gl-tab-nav-item{ href: admin_background_migrations_path, class: (active_tab_classes if @current_tab == 'queued'), role: 'tab' }
= _('Queued')
2022-03-02 08:16:31 +05:30
= gl_tab_counter_badge limited_counter_with_delimiter(@relations_by_tab['queued'])
2021-09-04 01:27:46 +05:30
%li.nav-item{ role: 'presentation' }
%a.nav-link.gl-tab-nav-item{ href: admin_background_migrations_path(tab: 'failed'), class: (active_tab_classes if @current_tab == 'failed'), role: 'tab' }
= _('Failed')
2022-03-02 08:16:31 +05:30
= gl_tab_counter_badge limited_counter_with_delimiter(@relations_by_tab['failed'])
2021-09-04 01:27:46 +05:30
%li.nav-item{ role: 'presentation' }
%a.nav-link.gl-tab-nav-item{ href: admin_background_migrations_path(tab: 'finished'), class: (active_tab_classes if @current_tab == 'finished'), role: 'tab' }
= _('Finished')
2022-03-02 08:16:31 +05:30
= gl_tab_counter_badge limited_counter_with_delimiter(@relations_by_tab['finished'])
2021-09-04 01:27:46 +05:30
.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' }= _('Migration')
%th.table-th-transparent.border-bottom{ role: 'cell' }= _('Progress')
%th.table-th-transparent.border-bottom{ role: 'cell' }= _('Status')
2021-09-30 23:02:18 +05:30
%th.table-th-transparent.border-bottom{ role: 'cell' }
2021-09-04 01:27:46 +05:30
%tbody{ role: 'rowgroup' }
= render partial: 'migration', collection: @migrations
= paginate_collection @migrations