summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-04 14:09:02 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-07 08:54:08 +0200
commit8f29d9c6eee0e2de827249d07dea644936297630 (patch)
tree1825402d95935edc0ba2270cb9418fa52e30b4a3
parent3762b910eb413475d0c5568efefdadcfb2e9724f (diff)
downloadgitlab-ce-8f29d9c6eee0e2de827249d07dea644936297630.tar.gz
Extract shared partial app/views/shared/runners/_runner_description.html.haml
-rw-r--r--app/views/groups/runners/_index.html.haml17
-rw-r--r--app/views/projects/runners/_index.html.haml17
-rw-r--r--app/views/shared/runners/_runner_description.html.haml16
3 files changed, 18 insertions, 32 deletions
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