diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-05-07 15:53:38 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-05-07 15:53:38 +0200 |
commit | 0c57782c8e568f360837c0633d8e98fc2ccec396 (patch) | |
tree | e0a61ed0ad689d295d72addac66c324c77eed4d8 /app/views/groups/runners | |
parent | 131ca31b23863226e57e0e3dd2ea78f91573f631 (diff) | |
download | gitlab-ce-0c57782c8e568f360837c0633d8e98fc2ccec396.tar.gz |
Add internalization
Diffstat (limited to 'app/views/groups/runners')
-rw-r--r-- | app/views/groups/runners/_group_runners.html.haml | 15 | ||||
-rw-r--r-- | app/views/groups/runners/_index.html.haml | 3 | ||||
-rw-r--r-- | app/views/groups/runners/_runner.html.haml | 8 |
3 files changed, 16 insertions, 10 deletions
diff --git a/app/views/groups/runners/_group_runners.html.haml b/app/views/groups/runners/_group_runners.html.haml index f0e8735b54e..1f9b43e8727 100644 --- a/app/views/groups/runners/_group_runners.html.haml +++ b/app/views/groups/runners/_group_runners.html.haml @@ -1,8 +1,11 @@ -%h3 Group Runners +- link = link_to 'Runners API', help_page_path('api/runners.md') + +%h3 + = _('Group Runners') .bs-callout.bs-callout-warning - GitLab Group Runners can execute code for all the projects in this group. - They can be managed using the #{link_to 'Runners API', help_page_path('api/runners.md')}. + = _('GitLab Group Runners can execute code for all the projects in this group.') + = _('They can be managed using the %{link}.').html_safe % { link: link } -# Proper policies should be implemented per -# https://gitlab.com/gitlab-org/gitlab-ce/issues/45894 @@ -11,9 +14,11 @@ locals: { registration_token: @group.runners_token, type: 'group' } - if @group.runners.empty? - %h4.underlined-title This group does not provide any group Runners yet. + %h4.underlined-title + = _('This group does not provide any group Runners yet.') - else - %h4.underlined-title Available group Runners : #{@group.runners.count} + %h4.underlined-title + = _('Available group Runners : %{runners}.').html_safe % { runners: @group.runners.count } %ul.bordered-list = render partial: 'groups/runners/runner', collection: @group.runners, as: :runner diff --git a/app/views/groups/runners/_index.html.haml b/app/views/groups/runners/_index.html.haml index 54700915448..0cf9011b471 100644 --- a/app/views/groups/runners/_index.html.haml +++ b/app/views/groups/runners/_index.html.haml @@ -2,7 +2,8 @@ %hr -%p.lead To start serving your jobs you can add Runners to your group +%p.lead + = _('To start serving your jobs you can add Runners to your group') .row .col-sm-6 = render 'groups/runners/group_runners' diff --git a/app/views/groups/runners/_runner.html.haml b/app/views/groups/runners/_runner.html.haml index b01c18f63a2..76650a961d6 100644 --- a/app/views/groups/runners/_runner.html.haml +++ b/app/views/groups/runners/_runner.html.haml @@ -6,14 +6,14 @@ %small.edit-runner = link_to edit_group_runner_path(@group, runner) do - %i.fa.fa-edit.btn + = icon('edit') .pull-right - if runner.active? - = link_to 'Pause', pause_group_runner_path(@group, runner), method: :post, class: 'btn btn-sm btn-danger', data: { confirm: "Are you sure?" } + = link_to _('Pause'), pause_group_runner_path(@group, runner), method: :post, class: 'btn btn-sm btn-danger', data: { confirm: _("Are you sure?") } - else - = link_to 'Resume', resume_group_runner_path(@group, runner), method: :post, class: 'btn btn-success btn-sm' - = link_to 'Remove Runner', group_runner_path(@group, runner), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm' + = link_to _('Resume'), resume_group_runner_path(@group, runner), method: :post, class: 'btn btn-success btn-sm' + = link_to _('Remove Runner'), group_runner_path(@group, runner), data: { confirm: _("Are you sure?") }, method: :delete, class: 'btn btn-danger btn-sm' .pull-right %small.light \##{runner.id} |