mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-08 00:49:11 +00:00
b7e95cc48c
- Adds a copy button to each action step header that copies the step's rendered log output to clipboard. - Extract a shared `copyToClipboard(target, content)` helper in `clipboard.ts` that adds SVG success/failure feedback. - `is-loading` height for the new helper is sourced from `--loading-size`. - Change actions log timestamp format to include seconds. The indented-markdown code-block fix has moved to #37748. <img width="244" height="165" alt="copystep" src="https://github.com/user-attachments/assets/ce286b51-f77b-4d82-b161-ca0aa7ec4fdc" /> <img width="187" height="150" alt="copybt" src="https://github.com/user-attachments/assets/5366b290-b776-496d-8dd4-58d5fa60be92" /> Fixes: https://github.com/go-gitea/gitea/issues/26116 --- This PR was written with the help of Claude Opus 4.7 --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Nicolas <bircni@icloud.com>
44 lines
2.7 KiB
Handlebars
44 lines
2.7 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-triggered-via="{{ctx.Locale.Tr "actions.runs.triggered_via"}}"
|
|
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-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-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"}}"
|
|
>
|
|
</div>
|