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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/background_migrations/index.html.haml')
-rw-r--r--app/views/admin/background_migrations/index.html.haml35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/views/admin/background_migrations/index.html.haml b/app/views/admin/background_migrations/index.html.haml
new file mode 100644
index 00000000000..2a372c89912
--- /dev/null
+++ b/app/views/admin/background_migrations/index.html.haml
@@ -0,0 +1,35 @@
+- 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')
+ %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
+ = limited_counter_with_delimiter(@relations_by_tab['queued'])
+ %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')
+ %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
+ = limited_counter_with_delimiter(@relations_by_tab['failed'])
+ %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')
+ %span.badge.gl-tab-counter-badge.badge-muted.badge-pill.gl-badge.sm
+ = limited_counter_with_delimiter(@relations_by_tab['finished'])
+
+ .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')
+ %tbody{ role: 'rowgroup' }
+ = render partial: 'migration', collection: @migrations
+
+ = paginate_collection @migrations