Commit d26074c7 authored by Stan Hu's avatar Stan Hu

Improve localization and formatting of Bitbucket Server importer status page

parent b2da3a35
...@@ -3,22 +3,23 @@ ...@@ -3,22 +3,23 @@
%h3.page-title %h3.page-title
%i.fa.fa-bitbucket-square %i.fa.fa-bitbucket-square
Import projects from Bitbucket Server = _('Import projects from Bitbucket Server')
= link_to('Reconfigure', configure_import_bitbucket_server_path, class: 'btn btn-primary float-right', method: :post)
- if @repos.any? - if @repos.any?
%p.light %p.light
Select projects you want to import. = _('Select projects you want to import.')
%hr %hr
%p .btn-group
- if @incompatible_repos.any? - if @incompatible_repos.any?
= button_tag class: 'btn btn-import btn-success js-import-all' do = button_tag class: 'btn btn-import btn-success js-import-all' do
Import all compatible projects = _('Import all compatible projects')
= icon('spinner spin', class: 'loading-icon') = icon('spinner spin', class: 'loading-icon')
- else - else
= button_tag class: 'btn btn-import btn-success js-import-all' do = button_tag class: 'btn btn-import btn-success js-import-all' do
Import all projects = _('Import all projects')
= icon('spinner spin', class: 'loading-icon') = icon('spinner spin', class: 'loading-icon')
.btn-group
= link_to('Reconfigure', configure_import_bitbucket_server_path, class: 'btn btn-primary', method: :post)
%p %p
.table-responsive .table-responsive
...@@ -28,9 +29,9 @@ ...@@ -28,9 +29,9 @@
%colgroup.import-jobs-status-col %colgroup.import-jobs-status-col
%thead %thead
%tr %tr
%th From Bitbucket Server %th= _('From Bitbucket Server')
%th To GitLab %th= _('To GitLab')
%th Status %th= _(' Status')
%tbody %tbody
- @already_added_projects.each do |project| - @already_added_projects.each do |project|
%tr{ id: "project_#{project.id}", class: "#{project_status_css_class(project.import_status)}" } %tr{ id: "project_#{project.id}", class: "#{project_status_css_class(project.import_status)}" }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment