Add link to timeout overriding documentation from job page sidebar

This commit is contained in:
Tomasz Maczukin 2018-02-21 05:28:31 +01:00
parent 42d2551dda
commit c21e817a90
No known key found for this signature in database
GPG Key ID: 7E9EB2E4B0F625CD
2 changed files with 21 additions and 0 deletions

View File

@ -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>

View File

@ -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