Add link to timeout overriding documentation from job page sidebar
This commit is contained in:
parent
42d2551dda
commit
c21e817a90
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue