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 /web_src/js/svg.js | |
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 'web_src/js/svg.js')
-rw-r--r-- | web_src/js/svg.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web_src/js/svg.js b/web_src/js/svg.js index 49376c1643..1ea0eb8347 100644 --- a/web_src/js/svg.js +++ b/web_src/js/svg.js @@ -26,6 +26,7 @@ import octiconEye from '../../public/img/svg/octicon-eye.svg'; import octiconFile from '../../public/img/svg/octicon-file.svg'; import octiconFileDirectoryFill from '../../public/img/svg/octicon-file-directory-fill.svg'; import octiconFilter from '../../public/img/svg/octicon-filter.svg'; +import octiconGear from '../../public/img/svg/octicon-gear.svg'; import octiconGitBranch from '../../public/img/svg/octicon-git-branch.svg'; import octiconGitMerge from '../../public/img/svg/octicon-git-merge.svg'; import octiconGitPullRequest from '../../public/img/svg/octicon-git-pull-request.svg'; @@ -94,6 +95,7 @@ const svgs = { 'octicon-file': octiconFile, 'octicon-file-directory-fill': octiconFileDirectoryFill, 'octicon-filter': octiconFilter, + 'octicon-gear': octiconGear, 'octicon-git-branch': octiconGitBranch, 'octicon-git-merge': octiconGitMerge, 'octicon-git-pull-request': octiconGitPullRequest, @@ -132,7 +134,7 @@ const svgs = { 'octicon-tag': octiconTag, 'octicon-triangle-down': octiconTriangleDown, 'octicon-x': octiconX, - 'octicon-x-circle-fill': octiconXCircleFill + 'octicon-x-circle-fill': octiconXCircleFill, }; // TODO: use a more general approach to access SVG icons. |