diff options
author | HesterG <hestergong@gmail.com> | 2023-05-31 04:38:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 20:38:55 +0000 |
commit | 1ea5c8b0ff5ca9f81a06b195a7dff870d784cb02 (patch) | |
tree | 064d7d6d6ee780effe021aeb5eae05d873daa9d5 /templates/repo | |
parent | 3dd3b1b456f922eaa9195cc312ca97a667ece128 (diff) | |
download | gitea-1ea5c8b0ff5ca9f81a06b195a7dff870d784cb02.tar.gz gitea-1ea5c8b0ff5ca9f81a06b195a7dff870d784cb02.zip |
Add show timestamp/seconds and fullscreen options to action page (#24876)
Part of #24728
- The timestamp shows local time and is parsed by `date.toLocaleString`;
- "show seconds" and "show timestamps" are mutually exclusive, and they
can be both hidden.
https://github.com/go-gitea/gitea/assets/17645053/89531e54-37b7-4400-a6a0-bb3cc69eb6f5
Update for timestamp format:
<img width="306" alt="Screen Shot 2023-05-25 at 09 07 47"
src="https://github.com/go-gitea/gitea/assets/17645053/2d99768d-d39c-4c9e-81a2-7bc7470399dd">
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/actions/view.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/actions/view.tmpl b/templates/repo/actions/view.tmpl index 3a3a069cbc..297232fca0 100644 --- a/templates/repo/actions/view.tmpl +++ b/templates/repo/actions/view.tmpl @@ -19,6 +19,9 @@ data-locale-status-skipped="{{.locale.Tr "actions.status.skipped"}}" data-locale-status-blocked="{{.locale.Tr "actions.status.blocked"}}" data-locale-artifacts-title="{{$.locale.Tr "artifacts"}}" + data-locale-show-timestamps="{{.locale.Tr "show_timestamps"}}" + data-locale-show-log-seconds="{{.locale.Tr "show_log_seconds"}}" + data-locale-show-full-screen="{{.locale.Tr "show_full_screen"}}" > </div> </div> |