diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json index 91e66940765..055933bf3c2 100644 --- a/options/locale/locale_en-US.json +++ b/options/locale/locale_en-US.json @@ -124,6 +124,7 @@ "artifacts": "Artifacts", "expired": "Expired", "artifact_expires_at": "Expires at %s", + "artifact_expired_at": "Expired at %s", "confirm_delete_artifact": "Are you sure you want to delete the artifact '%s'?", "archived": "Archived", "concept_system_global": "Global", diff --git a/routers/web/repo/actions/view.go b/routers/web/repo/actions/view.go index d5035099de5..4c79e83617f 100644 --- a/routers/web/repo/actions/view.go +++ b/routers/web/repo/actions/view.go @@ -716,9 +716,10 @@ func fillViewRunResponseSummary(ctx *context_module.Context, resp *ViewResponse, resp.Artifacts = make([]*ArtifactsViewItem, 0, len(arts)) for _, art := range arts { resp.Artifacts = append(resp.Artifacts, &ArtifactsViewItem{ - Name: art.ArtifactName, - Size: art.FileSize, - Status: util.Iif(art.Status == actions_model.ArtifactStatusExpired, "expired", "completed"), + Name: art.ArtifactName, + Size: art.FileSize, + Status: util.Iif(art.Status == actions_model.ArtifactStatusExpired, "expired", "completed"), + ExpiresUnix: int64(art.ExpiredUnix), }) } } diff --git a/templates/repo/actions/view_component.tmpl b/templates/repo/actions/view_component.tmpl index fbaf31838d3..6f62b1e651a 100644 --- a/templates/repo/actions/view_component.tmpl +++ b/templates/repo/actions/view_component.tmpl @@ -39,6 +39,7 @@ data-locale-artifacts-title="{{ctx.Locale.Tr "artifacts"}}" data-locale-artifact-expired="{{ctx.Locale.Tr "expired"}}" data-locale-artifact-expires-at="{{ctx.Locale.Tr "artifact_expires_at"}}" + data-locale-artifact-expired-at="{{ctx.Locale.Tr "artifact_expired_at"}}" data-locale-confirm-delete-artifact="{{ctx.Locale.Tr "confirm_delete_artifact"}}" data-locale-show-timestamps="{{ctx.Locale.Tr "show_timestamps"}}" data-locale-show-log-seconds="{{ctx.Locale.Tr "show_log_seconds"}}" diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index 740665e1747..a2ab0b3812c 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -274,7 +274,12 @@ onBeforeUnmount(() => { - + {{ artifact.name }} {{ locale.artifactExpired }} diff --git a/web_src/js/features/repo-actions.ts b/web_src/js/features/repo-actions.ts index 11f37a66fec..ccfabea1095 100644 --- a/web_src/js/features/repo-actions.ts +++ b/web_src/js/features/repo-actions.ts @@ -71,6 +71,7 @@ function initRepositoryActionsView() { artifactsTitle: el.getAttribute('data-locale-artifacts-title'), artifactExpired: el.getAttribute('data-locale-artifact-expired'), artifactExpiresAt: el.getAttribute('data-locale-artifact-expires-at'), + artifactExpiredAt: el.getAttribute('data-locale-artifact-expired-at'), confirmDeleteArtifact: el.getAttribute('data-locale-confirm-delete-artifact'), showTimeStamps: el.getAttribute('data-locale-show-timestamps'), showLogSeconds: el.getAttribute('data-locale-show-log-seconds'),