mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-03 05:39:39 +00:00
5f017302bf
Backport #38477 by @bircni The artifact info hover tooltip (#37100) only worked for live artifacts. Hovering an expired/deleted artifact showed nothing, and even on live artifacts the retention date was missing on real runs. Two root causes: 1. **Expired artifacts had no tooltip.** In the run view sidebar, expired artifacts render in a separate branch that omitted `data-tooltip-content` entirely, so there was nothing to hover. 2. **`ExpiresUnix` was no longer sent.** The `ActionRunAttempt` refactor (#37119) dropped `ExpiresUnix` from `fillViewRunResponseArtifacts`, so real runs always returned `0` and the tooltip fell back to size-only. Only the devtest mock still populated it, which masked the regression. Artifacts without a recorded expiry (`expiresUnix <= 0`) still degrade gracefully to a size-only tooltip. Both states can be previewed on the `/devtest/mock/*` actions run page. Co-authored-by: bircni <bircni@icloud.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
63 lines
4.3 KiB
Handlebars
63 lines
4.3 KiB
Handlebars
<div id="repo-action-view"
|
|
data-job-id="{{.JobID}}"
|
|
data-actions-view-url="{{.ActionsViewURL}}"
|
|
|
|
data-locale-approve="{{ctx.Locale.Tr "repo.diff.review.approve"}}"
|
|
data-locale-cancel="{{ctx.Locale.Tr "actions.runs.cancel"}}"
|
|
data-locale-rerun="{{ctx.Locale.Tr "rerun"}}"
|
|
data-locale-rerun-all="{{ctx.Locale.Tr "rerun_all"}}"
|
|
data-locale-rerun-failed="{{ctx.Locale.Tr "rerun_failed"}}"
|
|
data-locale-latest="{{ctx.Locale.Tr "actions.runs.latest"}}"
|
|
data-locale-latest-attempt="{{ctx.Locale.Tr "actions.runs.latest_attempt"}}"
|
|
data-locale-attempt="{{ctx.Locale.Tr "actions.runs.attempt"}}"
|
|
data-locale-runs-scheduled="{{ctx.Locale.Tr "actions.runs.scheduled"}}"
|
|
data-locale-runs-commit="{{ctx.Locale.Tr "actions.runs.commit"}}"
|
|
data-locale-runs-pushed-by="{{ctx.Locale.Tr "actions.runs.pushed_by"}}"
|
|
data-locale-summary="{{ctx.Locale.Tr "actions.runs.summary"}}"
|
|
data-locale-all-jobs="{{ctx.Locale.Tr "actions.runs.all_jobs"}}"
|
|
data-locale-job-summaries="{{ctx.Locale.Tr "actions.runs.job_summaries"}}"
|
|
data-locale-expand-caller-jobs="{{ctx.Locale.Tr "actions.runs.expand_caller_jobs"}}"
|
|
data-locale-collapse-caller-jobs="{{ctx.Locale.Tr "actions.runs.collapse_caller_jobs"}}"
|
|
data-locale-triggered-via="{{ctx.Locale.Tr "actions.runs.triggered_via"}}"
|
|
data-locale-rerun-triggered="{{ctx.Locale.Tr "actions.runs.rerun_triggered"}}"
|
|
data-locale-back-to-pull-request="{{ctx.Locale.Tr "actions.runs.back_to_pull_request"}}"
|
|
data-locale-back-to-workflow="{{ctx.Locale.Tr "actions.runs.back_to_workflow"}}"
|
|
data-locale-status-label="{{ctx.Locale.Tr "actions.runs.status"}}"
|
|
data-locale-total-duration="{{ctx.Locale.Tr "actions.runs.total_duration"}}"
|
|
data-locale-run-details="{{ctx.Locale.Tr "actions.runs.run_details"}}"
|
|
data-locale-workflow-file="{{ctx.Locale.Tr "actions.runs.workflow_file"}}"
|
|
data-locale-workflow-file-no-permission="{{ctx.Locale.Tr "actions.runs.workflow_file_no_permission"}}"
|
|
data-locale-status-unknown="{{ctx.Locale.Tr "actions.status.unknown"}}"
|
|
data-locale-status-waiting="{{ctx.Locale.Tr "actions.status.waiting"}}"
|
|
data-locale-status-running="{{ctx.Locale.Tr "actions.status.running"}}"
|
|
data-locale-status-cancelling="{{ctx.Locale.Tr "actions.status.cancelling"}}"
|
|
data-locale-status-success="{{ctx.Locale.Tr "actions.status.success"}}"
|
|
data-locale-status-failure="{{ctx.Locale.Tr "actions.status.failure"}}"
|
|
data-locale-status-cancelled="{{ctx.Locale.Tr "actions.status.cancelled"}}"
|
|
data-locale-status-skipped="{{ctx.Locale.Tr "actions.status.skipped"}}"
|
|
data-locale-status-blocked="{{ctx.Locale.Tr "actions.status.blocked"}}"
|
|
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"}}"
|
|
data-locale-show-full-screen="{{ctx.Locale.Tr "show_full_screen"}}"
|
|
data-locale-download-logs="{{ctx.Locale.Tr "download_logs"}}"
|
|
data-locale-copy-output="{{ctx.Locale.Tr "copy_output"}}"
|
|
data-locale-logs-always-auto-scroll="{{ctx.Locale.Tr "actions.logs.always_auto_scroll"}}"
|
|
data-locale-logs-always-expand-running="{{ctx.Locale.Tr "actions.logs.always_expand_running"}}"
|
|
data-locale-workflow-dependencies="{{ctx.Locale.Tr "actions.runs.workflow_dependencies"}}"
|
|
data-locale-graph-jobs-count-1="{{ctx.Locale.Tr "actions.runs.graph_jobs_count_1"}}"
|
|
data-locale-graph-jobs-count-n="{{ctx.Locale.Tr "actions.runs.graph_jobs_count_n"}}"
|
|
data-locale-graph-dependencies-count-1="{{ctx.Locale.Tr "actions.runs.graph_dependencies_count_1"}}"
|
|
data-locale-graph-dependencies-count-n="{{ctx.Locale.Tr "actions.runs.graph_dependencies_count_n"}}"
|
|
data-locale-graph-success-rate="{{ctx.Locale.Tr "actions.runs.graph_success_rate"}}"
|
|
data-locale-graph-zoom-in="{{ctx.Locale.Tr "actions.runs.graph_zoom_in"}}"
|
|
data-locale-graph-zoom-max="{{ctx.Locale.Tr "actions.runs.graph_zoom_max"}}"
|
|
data-locale-graph-zoom-out="{{ctx.Locale.Tr "actions.runs.graph_zoom_out"}}"
|
|
data-locale-graph-reset-view="{{ctx.Locale.Tr "actions.runs.graph_reset_view"}}"
|
|
>
|
|
</div>
|