Skip to content
Snippets Groups Projects
Commit e8b30ef1 authored by Valentin Rigal's avatar Valentin Rigal Committed by Erwan Rouchet
Browse files

Support worker runs with a version not linked to a revision in the details modal

parent eaa05e4d
No related branches found
No related tags found
1 merge request!1580Support worker runs with a version not linked to a revision in the details modal
......@@ -17,26 +17,32 @@
<strong>Name: </strong>
{{ workerRun.worker_version.worker.name || '' }}
</p>
<p>
<strong>Git references: </strong>
<template v-if="workerRun.worker_version.revision.refs.length">
<span
class="tag is-light mx-1"
:class="refsClass(item.type)"
v-for="item in workerRun.worker_version.revision.refs"
:key="item.id"
>{{ item.name }}</span>
</template>
<template v-else></template>
</p>
<p>
<strong>Git revision: </strong>
<a
:href="workerRun.worker_version.revision.commit_url"
target="_blank"
>
<samp>{{ workerRun.worker_version.revision.hash.slice(0, 8) }}</samp>
</a>
<template v-if="workerRun.worker_version.revision">
<p>
<strong>Git references: </strong>
<template v-if="workerRun.worker_version.revision.refs.length">
<span
class="tag is-light mx-1"
:class="refsClass(item.type)"
v-for="item in workerRun.worker_version.revision.refs"
:key="item.id"
>{{ item.name }}</span>
</template>
<template v-else></template>
</p>
<p>
<strong>Git revision: </strong>
<a
:href="workerRun.worker_version.revision.commit_url"
target="_blank"
>
<samp>{{ workerRun.worker_version.revision.hash.slice(0, 8) }}</samp>
</a>
</p>
</template>
<p v-else>
<strong>Version: </strong>
{{ workerRun.worker_version.version }}
</p>
<p class="mt-2">
<strong>Worker version ID: </strong>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment