Skip to content

Commit 1ea5c8b

Browse files
HesterGsilverwindwxiaoguang
authored
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 <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
1 parent 3dd3b1b commit 1ea5c8b

File tree

7 files changed

+222
-32
lines changed

7 files changed

+222
-32
lines changed

options/locale/locale_en-US.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ concept_user_individual = Individual
125125
concept_code_repository = Repository
126126
concept_user_organization = Organization
127127

128+
show_timestamps = Show timestamps
129+
show_log_seconds = Show seconds
130+
show_full_screen = Show full screen
131+
128132
[aria]
129133
navbar = Navigation Bar
130134
footer = Footer

templates/repo/actions/view.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
data-locale-status-skipped="{{.locale.Tr "actions.status.skipped"}}"
2020
data-locale-status-blocked="{{.locale.Tr "actions.status.blocked"}}"
2121
data-locale-artifacts-title="{{$.locale.Tr "artifacts"}}"
22+
data-locale-show-timestamps="{{.locale.Tr "show_timestamps"}}"
23+
data-locale-show-log-seconds="{{.locale.Tr "show_log_seconds"}}"
24+
data-locale-show-full-screen="{{.locale.Tr "show_full_screen"}}"
2225
>
2326
</div>
2427
</div>

web_src/css/base.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@
7474
--color-secondary-alpha-90: #dededee1;
7575
--color-secondary-hover: var(--color-secondary-dark-1);
7676
--color-secondary-active: var(--color-secondary-dark-2);
77-
/* console colors */
78-
--color-console-fg: #ffffff;
79-
--color-console-bg: #252a2f;
80-
--color-console-border: #ffffff16;
77+
/* console colors - used for actions console and console files */
78+
--color-console-fg: #eeeff2;
79+
--color-console-fg-subtle: #959cab;
80+
--color-console-bg: #262936;
81+
--color-console-border: #383c47;
8182
--color-console-hover-bg: #ffffff16;
82-
--color-console-active-bg: #353a3f;
83+
--color-console-active-bg: #454a57;
84+
--color-console-menu-bg: #383c47;
85+
--color-console-menu-border: #5c6374;
8386
/* named colors */
8487
--color-red: #db2828;
8588
--color-orange: #f2711c;

web_src/css/themes/theme-arc-green.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@
6060
--color-secondary-alpha-90: #525767e1;
6161
--color-secondary-hover: var(--color-secondary-light-1);
6262
--color-secondary-active: var(--color-secondary-light-2);
63-
/* console colors */
64-
--color-console-fg: #ffffff;
63+
/* console colors - used for actions console and console files */
64+
--color-console-fg: #eeeff2;
65+
--color-console-fg-subtle: #959cab;
6566
--color-console-bg: #262936;
66-
--color-console-border: #ffffff16;
67+
--color-console-border: #383c47;
6768
--color-console-hover-bg: #ffffff16;
68-
--color-console-active-bg: #383c47;
69+
--color-console-active-bg: #454a57;
70+
--color-console-menu-bg: #383c47;
71+
--color-console-menu-border: #5c6374;
6972
/* named colors */
7073
--color-red: #cc4848;
7174
--color-orange: #cc580c;

0 commit comments

Comments
 (0)