|
|
|
|
@ -495,14 +495,24 @@ export default defineComponent({
|
|
|
|
|
{{ locale.artifactsTitle }}
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="job-artifacts-list">
|
|
|
|
|
<li class="job-artifacts-item" v-for="artifact in artifacts" :key="artifact.name">
|
|
|
|
|
<a class="job-artifacts-link" target="_blank" :href="run.link+'/artifacts/'+artifact.name">
|
|
|
|
|
<SvgIcon name="octicon-file" class="ui text black job-artifacts-icon"/>{{ artifact.name }}
|
|
|
|
|
</a>
|
|
|
|
|
<a v-if="run.canDeleteArtifact" @click="deleteArtifact(artifact.name)" class="job-artifacts-delete">
|
|
|
|
|
<SvgIcon name="octicon-trash" class="ui text black job-artifacts-icon"/>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<template v-for="artifact in artifacts" :key="artifact.name">
|
|
|
|
|
<li class="job-artifacts-item">
|
|
|
|
|
<template v-if="artifact.status !== 'expired'">
|
|
|
|
|
<a class="flex-text-inline" target="_blank" :href="run.link+'/artifacts/'+artifact.name">
|
|
|
|
|
<SvgIcon name="octicon-file" class="text black"/>
|
|
|
|
|
<span class="gt-ellipsis">{{ artifact.name }}</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a v-if="run.canDeleteArtifact" @click="deleteArtifact(artifact.name)">
|
|
|
|
|
<SvgIcon name="octicon-trash" class="text black"/>
|
|
|
|
|
</a>
|
|
|
|
|
</template>
|
|
|
|
|
<span v-else class="flex-text-inline text light grey">
|
|
|
|
|
<SvgIcon name="octicon-file"/>
|
|
|
|
|
<span class="gt-ellipsis">{{ artifact.name }}</span>
|
|
|
|
|
<span class="ui label text light grey tw-flex-shrink-0">{{ locale.artifactExpired }}</span>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
</template>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -664,6 +674,7 @@ export default defineComponent({
|
|
|
|
|
padding: 6px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.job-artifacts-list {
|
|
|
|
|
@ -671,10 +682,6 @@ export default defineComponent({
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.job-artifacts-icon {
|
|
|
|
|
padding-right: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.job-brief-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|