From 8f29d9c6eee0e2de827249d07dea644936297630 Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Fri, 4 May 2018 14:09:02 +0200 Subject: Extract shared partial app/views/shared/runners/_runner_description.html.haml --- app/views/groups/runners/_index.html.haml | 17 +---------------- app/views/projects/runners/_index.html.haml | 17 +---------------- app/views/shared/runners/_runner_description.html.haml | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 32 deletions(-) create mode 100644 app/views/shared/runners/_runner_description.html.haml diff --git a/app/views/groups/runners/_index.html.haml b/app/views/groups/runners/_index.html.haml index 9a1228ce91d..54700915448 100644 --- a/app/views/groups/runners/_index.html.haml +++ b/app/views/groups/runners/_index.html.haml @@ -1,19 +1,4 @@ -.light.prepend-top-default - %p - A 'Runner' is a process which runs a job. - You can setup as many Runners as you need. - %br - Runners can be placed on separate users, servers, and even on your local machine. - - %p Each Runner can be in one of the following states: - %div - %ul - %li - %span.label.label-success active - \- Runner is active and can process any new jobs - %li - %span.label.label-danger paused - \- Runner is paused and will not receive any new jobs += render 'shared/runners/runner_description' %hr diff --git a/app/views/projects/runners/_index.html.haml b/app/views/projects/runners/_index.html.haml index e3833ceb5f1..022687b831f 100644 --- a/app/views/projects/runners/_index.html.haml +++ b/app/views/projects/runners/_index.html.haml @@ -1,19 +1,4 @@ -.light.prepend-top-default - %p - A 'Runner' is a process which runs a job. - You can setup as many Runners as you need. - %br - Runners can be placed on separate users, servers, and even on your local machine. - - %p Each Runner can be in one of the following states: - %div - %ul - %li - %span.label.label-success active - \- Runner is active and can process any new jobs - %li - %span.label.label-danger paused - \- Runner is paused and will not receive any new jobs += render 'shared/runners/runner_description' %hr diff --git a/app/views/shared/runners/_runner_description.html.haml b/app/views/shared/runners/_runner_description.html.haml new file mode 100644 index 00000000000..24d5f7fe761 --- /dev/null +++ b/app/views/shared/runners/_runner_description.html.haml @@ -0,0 +1,16 @@ +.light.prepend-top-default + %p + A 'Runner' is a process which runs a job. + You can setup as many Runners as you need. + %br + Runners can be placed on separate users, servers, and even on your local machine. + + %p Each Runner can be in one of the following states: + %div + %ul + %li + %span.label.label-success active + \- Runner is active and can process any new jobs + %li + %span.label.label-danger paused + \- Runner is paused and will not receive any new jobs -- cgit v1.2.1