feat(fe): simplify template list

This commit is contained in:
Denis Gukov 2021-10-26 02:03:06 +05:00
parent 2cc1c145d5
commit 31e14eccb9

View File

@ -89,6 +89,7 @@
<template v-slot:item.version="{ item }">
<TaskLink
v-if="item.last_task && item.last_task.tpl_type !== ''"
:disabled="true"
:status="item.last_task.status"
:task-id="item.last_task.tpl_type === 'build'
@ -110,16 +111,16 @@
<div class="mt-2 mb-2" v-if="item.last_task != null">
<div class="d-flex">
<TaskStatus :status="item.last_task.status"/>
<div class="ml-3" style="line-height: 1">
<TaskLink
:task-id="item.last_task.id"
:label="'#' + item.last_task.id"
:tooltip="item.last_task.message"
/>
<div style="color: gray; font-size: 14px;">
by {{ item.last_task.user_name }} {{ item.last_task.created|formatDate }}
</div>
</div>
<!-- <div class="ml-3" style="line-height: 1">-->
<!-- <TaskLink-->
<!-- :task-id="item.last_task.id"-->
<!-- :label="'#' + item.last_task.id"-->
<!-- :tooltip="item.last_task.message"-->
<!-- />-->
<!-- <div style="color: gray; font-size: 14px;">-->
<!-- by {{ item.last_task.user_name }} {{ item.last_task.created|formatDate }}-->
<!-- </div>-->
<!-- </div>-->
</div>
</div>
<div v-else class="mt-3 mb-2 d-flex" style="color: gray;">Not launched</div>