Commit e75614e8 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Add few frontend improvements

parent f18eb6da
...@@ -44,8 +44,12 @@ ...@@ -44,8 +44,12 @@
<a <a
:href="helpUrl" :href="helpUrl"
target="_blank" target="_blank"
rel="noopener noreferrer nofollow"
> >
<i class="fa fa-question-circle"></i> <i
class="fa fa-question-circle"
aria-hidden="true"
></i>
</a> </a>
</span> </span>
</p> </p>
......
...@@ -22,6 +22,11 @@ ...@@ -22,6 +22,11 @@
type: Boolean, type: Boolean,
required: true, required: true,
}, },
runnerHelpUrl: {
type: String,
required: false,
default: '',
},
}, },
computed: { computed: {
shouldRenderContent() { shouldRenderContent() {
...@@ -127,7 +132,7 @@ ...@@ -127,7 +132,7 @@
class="js-job-timeout" class="js-job-timeout"
v-if="job.timeout" v-if="job.timeout"
title="Timeout" title="Timeout"
help-url="/help/ci/runners/README.html#setting-maximum-job-timeout-for-a-runner" :help-url="runnerHelpUrl"
:value="timeout" :value="timeout"
/> />
<detail-row <detail-row
......
...@@ -51,6 +51,7 @@ export default () => { ...@@ -51,6 +51,7 @@ export default () => {
props: { props: {
isLoading: this.mediator.state.isLoading, isLoading: this.mediator.state.isLoading,
job: this.mediator.store.state.job, job: this.mediator.store.state.job,
runnerHelpUrl: dataset.runnerHelpUrl,
}, },
}); });
}, },
......
...@@ -111,4 +111,4 @@ ...@@ -111,4 +111,4 @@
.js-build-options{ data: javascript_build_options } .js-build-options{ data: javascript_build_options }
#js-job-details-vue{ data: { endpoint: project_job_path(@project, @build, format: :json) } } #js-job-details-vue{ data: { endpoint: project_job_path(@project, @build, format: :json), runner_help_url: '/help/ci/runners/README.html#setting-maximum-job-timeout-for-a-runner' } }
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