|
10 | 10 | </div>
|
11 | 11 | <span>{{ pipeline.author }}</span>
|
12 | 12 | </div>
|
13 |
| - <div class="flex space-x-1 items-center min-w-0"> |
| 13 | + <a |
| 14 | + v-if="pipeline.event === 'pull_request'" |
| 15 | + class="flex items-center space-x-1 text-wp-link-100 hover:text-wp-link-200 min-w-0" |
| 16 | + :href="pipeline.link_url" |
| 17 | + > |
| 18 | + <Icon name="pull_request" /> |
| 19 | + <span class="truncate">{{ prettyRef }}</span> |
| 20 | + </a> |
| 21 | + <router-link |
| 22 | + v-else-if="pipeline.event === 'push' || pipeline.event === 'manual' || pipeline.event === 'deployment'" |
| 23 | + class="flex items-center space-x-1 text-wp-link-100 hover:text-wp-link-200 min-w-0" |
| 24 | + :to="{ name: 'repo-branch', params: { branch: prettyRef } }" |
| 25 | + > |
14 | 26 | <Icon v-if="pipeline.event === 'manual'" name="manual-pipeline" />
|
15 |
| - <Icon v-if="pipeline.event === 'push'" name="push" /> |
16 |
| - <Icon v-if="pipeline.event === 'deployment'" name="deployment" /> |
17 |
| - <Icon v-else-if="pipeline.event === 'tag'" name="tag" /> |
18 |
| - <a |
19 |
| - v-else-if="pipeline.event === 'pull_request'" |
20 |
| - class="flex items-center space-x-1 text-wp-link-100 hover:text-wp-link-200 min-w-0" |
21 |
| - :href="pipeline.link_url" |
22 |
| - target="_blank" |
23 |
| - > |
24 |
| - <Icon name="pull_request" /> |
25 |
| - <span class="truncate">{{ prettyRef }}</span> |
26 |
| - </a> |
27 |
| - <span v-if="pipeline.event !== 'pull_request'" class="truncate">{{ prettyRef }}</span> |
| 27 | + <Icon v-else-if="pipeline.event === 'push'" name="push" /> |
| 28 | + <Icon v-else-if="pipeline.event === 'deployment'" name="deployment" /> |
| 29 | + <span class="truncate">{{ prettyRef }}</span> |
| 30 | + </router-link> |
| 31 | + <div v-else class="flex space-x-1 items-center min-w-0"> |
| 32 | + <Icon v-if="pipeline.event === 'tag'" name="tag" /> |
| 33 | + |
| 34 | + <span class="truncate">{{ prettyRef }}</span> |
28 | 35 | </div>
|
29 | 36 | <div class="flex items-center flex-shrink-0">
|
30 | 37 | <template v-if="pipeline.event === 'pull_request'">
|
|
0 commit comments