Skip to content

Commit 69c8fb8

Browse files
committed
feat(ui): task info
1 parent cc2da02 commit 69c8fb8

File tree

1 file changed

+12
-38
lines changed

1 file changed

+12
-38
lines changed

web/src/components/TaskDetails.vue

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,23 @@
1010
<h3>Commit info</h3>
1111

1212
<div class="mb-4">
13-
<div v-if="item.message">Message: {{ item.message }}</div>
1413
<div>Commit message: {{ item.commit_message }}</div>
1514
<div>Commit hash: {{ item.commit_hash }}</div>
1615
</div>
1716

1817
<h3>Running info</h3>
19-
<v-row>
20-
<v-col class="pr-4">
21-
<v-list two-line subheader class="pa-0">
22-
<v-list-item class="pa-0">
23-
<v-list-item-content v-if="item.user_id != null">
24-
<v-list-item-title>{{ $t('author') }}</v-list-item-title>
25-
<v-list-item-subtitle>{{ user?.name || '-' }}</v-list-item-subtitle>
26-
</v-list-item-content>
27-
<v-list-item-content v-else-if="item.integration_id != null">
28-
<v-list-item-title>{{ $t('integration') }}</v-list-item-title>
29-
</v-list-item-content>
30-
</v-list-item>
31-
</v-list>
32-
</v-col>
33-
<v-col class="pr-4">
34-
<v-list two-line subheader class="pa-0">
35-
<v-list-item class="pa-0">
36-
<v-list-item-content>
37-
<v-list-item-title>{{ $t('started') || '-' }}</v-list-item-title>
38-
<v-list-item-subtitle>
39-
{{ item.start | formatDate }}
40-
</v-list-item-subtitle>
41-
</v-list-item-content>
42-
</v-list-item>
43-
</v-list>
44-
</v-col>
45-
<v-col>
46-
<v-list-item class="pa-0">
47-
<v-list-item-content>
48-
<v-list-item-title>{{ $t('duration') || '-' }}</v-list-item-title>
49-
<v-list-item-subtitle>
50-
{{ [item.start, item.end] | formatMilliseconds }}
51-
</v-list-item-subtitle>
52-
</v-list-item-content>
53-
</v-list-item>
54-
</v-col>
55-
</v-row>
18+
19+
<div class="mb-4">
20+
<div>Message: {{ item.message || '-' }}</div>
21+
22+
<div v-if="item.user_id != null">{{ $t('author') }}: {{ user?.name || '-' }}</div>
23+
<div v-else-if="item.integration_id != null">
24+
{{ $t('integration') }}: {{ item.integration_id }}
25+
</div>
26+
27+
<div>{{ $t('started') }}: {{ item.start | formatDate }}</div>
28+
<div>{{ $t('duration') }}: {{ [item.start, item.end] | formatMilliseconds }}</div>
29+
</div>
5630

5731
<h3>Task parameters</h3>
5832
<div class="mb-4">

0 commit comments

Comments
 (0)