Merge pull request '[UI] Actions: Link to Workflow in View' (#1866) from n0toose/forgejo:forgejo-add-workflow-link into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1866 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
d0e5af7079
6 changed files with 62 additions and 19 deletions
|
@ -17,6 +17,8 @@ const sfc = {
|
|||
runIndex: String,
|
||||
jobIndex: String,
|
||||
actionsURL: String,
|
||||
workflowName: String,
|
||||
workflowURL: String,
|
||||
locale: Object,
|
||||
},
|
||||
|
||||
|
@ -56,6 +58,7 @@ const sfc = {
|
|||
commit: {
|
||||
localeCommit: '',
|
||||
localePushedBy: '',
|
||||
localeWorkflow: '',
|
||||
shortSHA: '',
|
||||
link: '',
|
||||
pusher: {
|
||||
|
@ -330,6 +333,8 @@ export function initRepositoryActionView() {
|
|||
runIndex: el.getAttribute('data-run-index'),
|
||||
jobIndex: el.getAttribute('data-job-index'),
|
||||
actionsURL: el.getAttribute('data-actions-url'),
|
||||
workflowName: el.getAttribute('data-workflow-name'),
|
||||
workflowURL: el.getAttribute('data-workflow-url'),
|
||||
locale: {
|
||||
approve: el.getAttribute('data-locale-approve'),
|
||||
cancel: el.getAttribute('data-locale-cancel'),
|
||||
|
@ -377,7 +382,7 @@ export function initRepositoryActionView() {
|
|||
{{ locale.rerun_all }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="action-commit-summary">
|
||||
<div class="action-summary">
|
||||
{{ run.commit.localeCommit }}
|
||||
<a class="muted" :href="run.commit.link">{{ run.commit.shortSHA }}</a>
|
||||
{{ run.commit.localePushedBy }}
|
||||
|
@ -386,6 +391,10 @@ export function initRepositoryActionView() {
|
|||
<a :href="run.commit.branch.link">{{ run.commit.branch.name }}</a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="action-summary">
|
||||
{{ run.commit.localeWorkflow }}
|
||||
<a class="muted" :href="workflowURL">{{ workflowName }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-view-body">
|
||||
<div class="action-view-left">
|
||||
|
@ -511,7 +520,7 @@ export function initRepositoryActionView() {
|
|||
flex: 1;
|
||||
}
|
||||
|
||||
.action-commit-summary {
|
||||
.action-summary {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
margin: 0 0 0 28px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue