BigW Consortium Gitlab

Add link to timeout overriding documentation from job page sidebar

parent 42d2551d
...@@ -11,11 +11,19 @@ ...@@ -11,11 +11,19 @@
type: String, type: String,
required: true, required: true,
}, },
helpUrl: {
type: String,
required: false,
default: '',
},
}, },
computed: { computed: {
hasTitle() { hasTitle() {
return this.title.length > 0; return this.title.length > 0;
}, },
hasHelpURL() {
return this.helpUrl.length > 0;
},
}, },
}; };
</script> </script>
...@@ -28,5 +36,17 @@ ...@@ -28,5 +36,17 @@
{{ title }}: {{ title }}:
</span> </span>
{{ value }} {{ 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> </p>
</template> </template>
...@@ -127,6 +127,7 @@ ...@@ -127,6 +127,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"
:value="timeout" :value="timeout"
/> />
<detail-row <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