Skip to content

Commit

Permalink
feat(fe): simplify template list
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Oct 25, 2021
1 parent 2cc1c14 commit 31e14ec
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions web2/src/views/project/Templates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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>
Expand Down

0 comments on commit 31e14ec

Please sign in to comment.