Commit c21e817a authored by Tomasz Maczukin's avatar Tomasz Maczukin

Add link to timeout overriding documentation from job page sidebar

parent 42d2551d
......@@ -11,11 +11,19 @@
type: String,
required: true,
},
helpUrl: {
type: String,
required: false,
default: '',
},
},
computed: {
hasTitle() {
return this.title.length > 0;
},
hasHelpURL() {
return this.helpUrl.length > 0;
},
},
};
</script>
......@@ -28,5 +36,17 @@
{{ title }}:
</span>
{{ value }}
<span
v-if="hasHelpURL"
class="help-button pull-right"
>
<a
:href="helpUrl"
target="_blank"
>
<i class="fa fa-question-circle"></i>
</a>
</span>
</p>
</template>
......@@ -127,6 +127,7 @@
class="js-job-timeout"
v-if="job.timeout"
title="Timeout"
help-url="/help/ci/runners/README.html#setting-maximum-job-timeout-for-a-runner"
:value="timeout"
/>
<detail-row
......
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