mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-29 08:47:40 +00:00
Use html list for changed files list (#2346)

This commit is contained in:
parent
5bd12aa646
commit
d155dfdecb
@ -1,11 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<Panel v-if="pipeline">
|
<Panel>
|
||||||
<div v-if="pipeline.changed_files === undefined || pipeline.changed_files.length < 1" class="w-full">
|
<ul class="list-disc list-inside w-full">
|
||||||
<span class="text-wp-text-100">{{ $t('repo.pipeline.no_files') }}</span>
|
<li v-for="file in pipeline.changed_files" :key="file">{{ file }}</li>
|
||||||
</div>
|
</ul>
|
||||||
<div v-for="file in pipeline.changed_files" v-else :key="file" class="w-full">
|
|
||||||
<div>- {{ file }}</div>
|
|
||||||
</div>
|
|
||||||
</Panel>
|
</Panel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -61,9 +61,13 @@
|
|||||||
<Tab id="tasks" :title="$t('repo.pipeline.tasks')" />
|
<Tab id="tasks" :title="$t('repo.pipeline.tasks')" />
|
||||||
<Tab id="config" :title="$t('repo.pipeline.config')" />
|
<Tab id="config" :title="$t('repo.pipeline.config')" />
|
||||||
<Tab
|
<Tab
|
||||||
v-if="pipeline.event === 'push' || pipeline.event === 'pull_request'"
|
v-if="
|
||||||
|
(pipeline.event === 'push' || pipeline.event === 'pull_request') &&
|
||||||
|
pipeline.changed_files &&
|
||||||
|
pipeline.changed_files.length > 0
|
||||||
|
"
|
||||||
id="changed-files"
|
id="changed-files"
|
||||||
:title="$t('repo.pipeline.files', { files: pipeline.changed_files?.length || 0 })"
|
:title="$t('repo.pipeline.files', { files: pipeline.changed_files.length })"
|
||||||
/>
|
/>
|
||||||
<router-view />
|
<router-view />
|
||||||
</Scaffold>
|
</Scaffold>
|
||||||
|
Loading…
Reference in New Issue
Block a user