diff options
author | silverwind <me@silverwind.io> | 2023-06-29 14:24:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 20:24:22 +0800 |
commit | 64f2d70262c4cfc1ee74875b4ec920551e304199 (patch) | |
tree | f09f0828b365485370ee788e93dfa1bafb6094fc /templates/admin | |
parent | 72b3af74be9654d6bb84c0ba6568d8eeca445963 (diff) | |
download | gitea-64f2d70262c4cfc1ee74875b4ec920551e304199.tar.gz gitea-64f2d70262c4cfc1ee74875b4ec920551e304199.zip |
Replace fomantic divider module with our own (#25539)
Should look exactly like before for normal dividers. "Horizontal" ones
look better because they no longer use image backgrounds.
<img width="917" alt="Screenshot 2023-06-27 at 19 07 56"
src="https://github.com/go-gitea/gitea/assets/115237/d97d8dec-6859-44a8-85ba-e4549b4dd9df">
<img width="914" alt="Screenshot 2023-06-27 at 19 05 58"
src="https://github.com/go-gitea/gitea/assets/115237/8bf98544-2d82-4ebf-ac68-d6dc237bd6b2">
<img width="1246" alt="Screenshot 2023-06-27 at 19 00 42"
src="https://github.com/go-gitea/gitea/assets/115237/36a6bb21-6029-4f53-8bee-535f55c66fed">
<img width="344" alt="Screenshot 2023-06-27 at 18 58 15"
src="https://github.com/go-gitea/gitea/assets/115237/a9e70aee-8e6b-4ea1-9e93-19c9f96aec6e">
<img width="823" alt="Screenshot 2023-06-27 at 18 56 22"
src="https://github.com/go-gitea/gitea/assets/115237/e7a497cd-f262-4683-8872-23c3c8cce32f">
<img width="330" alt="Screenshot 2023-06-27 at 19 21 11"
src="https://github.com/go-gitea/gitea/assets/115237/42f24149-a655-4c7e-bd26-8ab52db6446b">
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 14 | ||||
-rw-r--r-- | templates/admin/dashboard.tmpl | 8 | ||||
-rw-r--r-- | templates/admin/stacktrace.tmpl | 2 | ||||
-rw-r--r-- | templates/admin/user/edit.tmpl | 8 | ||||
-rw-r--r-- | templates/admin/user/list.tmpl | 10 |
5 files changed, 21 insertions, 21 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 17fb2444d3..c51f9cb0bf 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -20,19 +20,19 @@ <dt>{{.locale.Tr "admin.config.disable_router_log"}}</dt> <dd>{{if .DisableRouterLog}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.config.run_user"}}</dt> <dd>{{.RunUser}}</dd> <dt>{{.locale.Tr "admin.config.run_mode"}}</dt> <dd>{{.RunMode}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.config.git_version"}}</dt> <dd>{{.GitVersion}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.config.repo_root_path"}}</dt> <dd>{{.RepoRootPath}}</dd> @@ -174,7 +174,7 @@ <dd>{{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}</dd> <dt>{{.locale.Tr "admin.config.default_enable_dependencies"}}</dt> <dd>{{if .Service.DefaultEnableDependencies}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.config.active_code_lives"}}</dt> <dd>{{.Service.ActiveCodeLives}} {{.locale.Tr "tool.raw_minutes"}}</dd> <dt>{{.locale.Tr "admin.config.reset_password_code_lives"}}</dt> @@ -230,7 +230,7 @@ {{end}} <dt>{{.locale.Tr "admin.config.mailer_user"}}</dt> <dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt class="gt-py-2">{{.locale.Tr "admin.config.send_test_mail"}}</dt> <dd> <form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_mail" method="post"> @@ -296,7 +296,7 @@ <input type="checkbox" name="picture.disable_gravatar" version="{{.SystemSettings.GetVersion "picture.disable_gravatar"}}"{{if .SystemSettings.GetBool "picture.disable_gravatar"}} checked{{end}} title="{{.locale.Tr "admin.config.disable_gravatar"}}"> </div> </dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.config.enable_federated_avatar"}}</dt> <dd> <div class="ui toggle checkbox"> @@ -322,7 +322,7 @@ <dt>{{.locale.Tr "admin.config.git_gc_args"}}</dt> <dd><code>{{.Git.GCArgs}}</code></dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.config.git_migrate_timeout"}}</dt> <dd>{{.Git.Timeout.Migrate}} {{.locale.Tr "tool.raw_seconds"}}</dd> diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 1dd920c2dd..8312fba039 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -79,7 +79,7 @@ <dd><relative-time format="duration" datetime="{{.SysStatus.StartTime}}">{{.SysStatus.StartTime}}</relative-time></dd> <dt>{{.locale.Tr "admin.dashboard.current_goroutine"}}</dt> <dd>{{.SysStatus.NumGoroutine}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.dashboard.current_memory_usage"}}</dt> <dd>{{.SysStatus.MemAllocated}}</dd> <dt>{{.locale.Tr "admin.dashboard.total_memory_allocated"}}</dt> @@ -92,7 +92,7 @@ <dd>{{.SysStatus.MemMallocs}}</dd> <dt>{{.locale.Tr "admin.dashboard.memory_free_times"}}</dt> <dd>{{.SysStatus.MemFrees}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.dashboard.current_heap_usage"}}</dt> <dd>{{.SysStatus.HeapAlloc}}</dd> <dt>{{.locale.Tr "admin.dashboard.heap_memory_obtained"}}</dt> @@ -105,7 +105,7 @@ <dd>{{.SysStatus.HeapReleased}}</dd> <dt>{{.locale.Tr "admin.dashboard.heap_objects"}}</dt> <dd>{{.SysStatus.HeapObjects}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.dashboard.bootstrap_stack_usage"}}</dt> <dd>{{.SysStatus.StackInuse}}</dd> <dt>{{.locale.Tr "admin.dashboard.stack_memory_obtained"}}</dt> @@ -124,7 +124,7 @@ <dd>{{.SysStatus.GCSys}}</dd> <dt>{{.locale.Tr "admin.dashboard.other_system_allocation_obtained"}}</dt> <dd>{{.SysStatus.OtherSys}}</dd> - <div class="ui divider"></div> + <div class="divider"></div> <dt>{{.locale.Tr "admin.dashboard.next_gc_recycle"}}</dt> <dd>{{.SysStatus.NextGC}}</dd> <dt>{{.locale.Tr "admin.dashboard.last_gc_time"}}</dt> diff --git a/templates/admin/stacktrace.tmpl b/templates/admin/stacktrace.tmpl index 46ad421587..b9d8e6538f 100644 --- a/templates/admin/stacktrace.tmpl +++ b/templates/admin/stacktrace.tmpl @@ -16,7 +16,7 @@ </form> </div> - <div class="ui divider"></div> + <div class="divider"></div> <h4 class="ui top attached header"> {{printf "%d Goroutines" .GoroutineCount}}{{/* Goroutine is non-translatable*/}} diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 75bbd9a97c..96e09156d1 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -79,7 +79,7 @@ <input id="location" name="location" value="{{.User.Location}}" maxlength="50"> </div> - <div class="ui divider"></div> + <div class="divider"></div> <div class="inline field {{if .Err_MaxRepoCreation}}error{{end}}"> <label for="max_repo_creation">{{.locale.Tr "admin.users.max_repo_creation"}}</label> @@ -87,7 +87,7 @@ <p class="help">{{.locale.Tr "admin.users.max_repo_creation_desc"}}</p> </div> - <div class="ui divider"></div> + <div class="divider"></div> <div class="inline field"> <div class="ui checkbox"> @@ -135,7 +135,7 @@ {{end}} {{if .TwoFactorEnabled}} - <div class="ui divider"></div> + <div class="divider"></div> <div class="inline field"> <div class="ui checkbox"> <label><strong>{{.locale.Tr "admin.users.reset_2fa"}}</strong></label> @@ -144,7 +144,7 @@ </div> {{end}} - <div class="ui divider"></div> + <div class="divider"></div> <div class="field"> <button class="ui green button">{{.locale.Tr "admin.users.update_profile"}}</button> diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index 3093b0f47a..3742b4ae85 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -16,19 +16,19 @@ <span class="text">{{.locale.Tr "admin.users.list_status_filter.menu_text"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}}</span> <div class="menu"> <a class="item j-reset-status-filter">{{.locale.Tr "admin.users.list_status_filter.reset"}}</a> - <div class="ui divider"></div> + <div class="divider"></div> <label class="item"><input type="radio" name="status_filter[is_admin]" value="1"> {{.locale.Tr "admin.users.list_status_filter.is_admin"}}</label> <label class="item"><input type="radio" name="status_filter[is_admin]" value="0"> {{.locale.Tr "admin.users.list_status_filter.not_admin"}}</label> - <div class="ui divider"></div> + <div class="divider"></div> <label class="item"><input type="radio" name="status_filter[is_active]" value="1"> {{.locale.Tr "admin.users.list_status_filter.is_active"}}</label> <label class="item"><input type="radio" name="status_filter[is_active]" value="0"> {{.locale.Tr "admin.users.list_status_filter.not_active"}}</label> - <div class="ui divider"></div> + <div class="divider"></div> <label class="item"><input type="radio" name="status_filter[is_restricted]" value="0"> {{.locale.Tr "admin.users.list_status_filter.not_restricted"}}</label> <label class="item"><input type="radio" name="status_filter[is_restricted]" value="1"> {{.locale.Tr "admin.users.list_status_filter.is_restricted"}}</label> - <div class="ui divider"></div> + <div class="divider"></div> <label class="item"><input type="radio" name="status_filter[is_prohibit_login]" value="0"> {{.locale.Tr "admin.users.list_status_filter.not_prohibit_login"}}</label> <label class="item"><input type="radio" name="status_filter[is_prohibit_login]" value="1"> {{.locale.Tr "admin.users.list_status_filter.is_prohibit_login"}}</label> - <div class="ui divider"></div> + <div class="divider"></div> <label class="item"><input type="radio" name="status_filter[is_2fa_enabled]" value="1"> {{.locale.Tr "admin.users.list_status_filter.is_2fa_enabled"}}</label> <label class="item"><input type="radio" name="status_filter[is_2fa_enabled]" value="0"> {{.locale.Tr "admin.users.list_status_filter.not_2fa_enabled"}}</label> </div> |