diff --git a/public/css/index.css b/public/css/index.css index e0b22687a0..e61daddcba 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -420,6 +420,14 @@ footer .ui.language .menu { background: inherit !important; padding: 0 !important; } +.ui.menu.new-menu { + justify-content: center !important; + padding-top: 15px !important; + margin-top: -15px !important; + margin-bottom: 15px !important; + background-color: #FAFAFA !important; + border-width: 1px !important; +} .markdown:not(code) { overflow: hidden; font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; diff --git a/public/less/_base.less b/public/less/_base.less index e938f42a51..7008b5c918 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -411,3 +411,12 @@ footer { background: inherit !important; padding: 0 !important; } + +.ui.menu.new-menu { + justify-content: center !important; + padding-top: 15px !important; + margin-top: -15px !important; + margin-bottom: 15px !important; + background-color: #FAFAFA !important; + border-width: 1px !important; +} diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 84b62f6e87..ea5104b79f 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -1,199 +1,195 @@ {{template "base/head" .}}
{{.i18n.Tr "admin.auths.bind_password_helper"}}
+{{.i18n.Tr "admin.auths.allowed_domains_helper"}}
+ID | -{{.i18n.Tr "admin.auths.name"}} | -{{.i18n.Tr "admin.auths.type"}} | -{{.i18n.Tr "admin.auths.enabled"}} | -{{.i18n.Tr "admin.auths.updated"}} | -{{.i18n.Tr "admin.users.created"}} | -{{.i18n.Tr "admin.users.edit"}} | -
---|---|---|---|---|---|---|
{{.ID}} | -{{.Name}} | -{{.TypeName}} | -- | {{DateFmtShort .Updated}} | -{{DateFmtShort .Created}} | -- |
ID | +{{.i18n.Tr "admin.auths.name"}} | +{{.i18n.Tr "admin.auths.type"}} | +{{.i18n.Tr "admin.auths.enabled"}} | +{{.i18n.Tr "admin.auths.updated"}} | +{{.i18n.Tr "admin.users.created"}} | +{{.i18n.Tr "admin.users.edit"}} | +
---|---|---|---|---|---|---|
{{.ID}} | +{{.Name}} | +{{.TypeName}} | ++ | {{DateFmtShort .Updated}} | +{{DateFmtShort .Created}} | ++ |
{{.CacheConn}}
{{.CacheConn}}
{{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig}}{{else}}-{{end}}
{{if .SessionConfig.ProviderConfig}}{{.SessionConfig.ProviderConfig}}{{else}}-{{end}}
{{.Git.GCArgs}}
{{.Git.GCArgs}}
{{.Config | JsonPrettyPrint}}
{{.Config | JsonPrettyPrint}}
- {{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2html}} -
-{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
{{.i18n.Tr "admin.dashboard.delete_repo_archives"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
{{.i18n.Tr "admin.dashboard.delete_missing_repos"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
{{.i18n.Tr "admin.dashboard.git_gc_repos"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
{{.i18n.Tr "admin.dashboard.resync_all_hooks"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
{{.i18n.Tr "admin.dashboard.reinit_missing_repos"}} | -{{.i18n.Tr "admin.dashboard.operation_run"}} | -
+ {{.i18n.Tr "admin.dashboard.statistic_info" .Stats.Counter.User .Stats.Counter.Org .Stats.Counter.PublicKey .Stats.Counter.Repo .Stats.Counter.Watch .Stats.Counter.Star .Stats.Counter.Action .Stats.Counter.Access .Stats.Counter.Issue .Stats.Counter.Comment .Stats.Counter.Oauth .Stats.Counter.Follow .Stats.Counter.Mirror .Stats.Counter.Release .Stats.Counter.LoginSource .Stats.Counter.Webhook .Stats.Counter.Milestone .Stats.Counter.Label .Stats.Counter.HookTask .Stats.Counter.Team .Stats.Counter.UpdateTask .Stats.Counter.Attachment | Str2html}} +
+{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.dashboard.delete_repo_archives"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.dashboard.delete_missing_repos"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.dashboard.git_gc_repos"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.dashboard.resync_all_hooks"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.dashboard.reinit_missing_repos"}} | +{{.i18n.Tr "admin.dashboard.operation_run"}} | +
{{.i18n.Tr "admin.monitor.name"}} | -{{.i18n.Tr "admin.monitor.schedule"}} | -{{.i18n.Tr "admin.monitor.next"}} | -{{.i18n.Tr "admin.monitor.previous"}} | -{{.i18n.Tr "admin.monitor.execute_times"}} | -
---|---|---|---|---|
{{.Description}} | -{{.Spec}} | -{{DateFmtLong .Next}} | -{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}} | -{{.ExecTimes}} | -
{{.i18n.Tr "admin.monitor.name"}} | +{{.i18n.Tr "admin.monitor.schedule"}} | +{{.i18n.Tr "admin.monitor.next"}} | +{{.i18n.Tr "admin.monitor.previous"}} | +{{.i18n.Tr "admin.monitor.execute_times"}} | +
---|---|---|---|---|
{{.Description}} | +{{.Spec}} | +{{DateFmtLong .Next}} | +{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}} | +{{.ExecTimes}} | +
Pid | -{{.i18n.Tr "admin.monitor.desc"}} | -{{.i18n.Tr "admin.monitor.start"}} | -{{.i18n.Tr "admin.monitor.execute_time"}} | -
---|---|---|---|
{{.PID}} | -{{.Description}} | -{{DateFmtLong .Start}} | -{{TimeSince .Start $.Lang}} | -
Pid | +{{.i18n.Tr "admin.monitor.desc"}} | +{{.i18n.Tr "admin.monitor.start"}} | +{{.i18n.Tr "admin.monitor.execute_time"}} | +
---|---|---|---|
{{.PID}} | +{{.Description}} | +{{DateFmtLong .Start}} | +{{TimeSince .Start $.Lang}} | +
ID | -{{.i18n.Tr "admin.orgs.name"}} | -{{.i18n.Tr "admin.orgs.teams"}} | -{{.i18n.Tr "admin.orgs.members"}} | -{{.i18n.Tr "admin.users.repos"}} | -{{.i18n.Tr "admin.users.created"}} | -{{.i18n.Tr "admin.users.edit"}} | -
---|---|---|---|---|---|---|
{{.ID}} | -{{.Name}} | -{{.NumTeams}} | -{{.NumMembers}} | -{{.NumRepos}} | -{{DateFmtShort .Created}} | -- |
ID | +{{.i18n.Tr "admin.orgs.name"}} | +{{.i18n.Tr "admin.orgs.teams"}} | +{{.i18n.Tr "admin.orgs.members"}} | +{{.i18n.Tr "admin.users.repos"}} | +{{.i18n.Tr "admin.users.created"}} | +{{.i18n.Tr "admin.users.edit"}} | +
---|---|---|---|---|---|---|
{{.ID}} | +{{.Name}} | +{{.NumTeams}} | +{{.NumMembers}} | +{{.NumRepos}} | +{{DateFmtShort .Created}} | ++ |
ID | -{{.i18n.Tr "admin.repos.owner"}} | -{{.i18n.Tr "admin.repos.name"}} | -{{.i18n.Tr "admin.repos.private"}} | -{{.i18n.Tr "admin.repos.watches"}} | -{{.i18n.Tr "admin.repos.stars"}} | -{{.i18n.Tr "admin.repos.issues"}} | -{{.i18n.Tr "admin.users.created"}} | -{{.i18n.Tr "admin.notices.op"}} | -
---|---|---|---|---|---|---|---|---|
{{.ID}} | -{{.Owner.Name}} | -{{.Name}} | -- | {{.NumWatches}} | -{{.NumStars}} | -{{.NumIssues}} | -{{DateFmtShort .Created}} | -- |
ID | +{{.i18n.Tr "admin.repos.owner"}} | +{{.i18n.Tr "admin.repos.name"}} | +{{.i18n.Tr "admin.repos.private"}} | +{{.i18n.Tr "admin.repos.watches"}} | +{{.i18n.Tr "admin.repos.stars"}} | +{{.i18n.Tr "admin.repos.issues"}} | +{{.i18n.Tr "admin.users.created"}} | +{{.i18n.Tr "admin.notices.op"}} | +
---|---|---|---|---|---|---|---|---|
{{.ID}} | +{{.Owner.Name}} | +{{.Name}} | ++ | {{.NumWatches}} | +{{.NumStars}} | +{{.NumIssues}} | +{{DateFmtShort .Created}} | ++ |
{{.i18n.Tr "admin.users.password_helper"}}
-{{.i18n.Tr "admin.users.max_repo_creation_desc"}}
-{{.i18n.Tr "admin.users.password_helper"}}
+{{.i18n.Tr "admin.users.max_repo_creation_desc"}}
+ID | -{{.i18n.Tr "admin.users.name"}} | -{{.i18n.Tr "email"}} | -{{.i18n.Tr "admin.users.activated"}} | -{{.i18n.Tr "admin.users.admin"}} | -{{.i18n.Tr "admin.users.repos"}} | -{{.i18n.Tr "admin.users.created"}} | -{{.i18n.Tr "admin.users.last_login"}} | -{{.i18n.Tr "admin.users.edit"}} | -|
---|---|---|---|---|---|---|---|---|---|
{{.ID}} | -{{.Name}} | -{{.Email}} | -- | - | {{.NumRepos}} | -{{DateFmtShort .Created }} | - {{if .LastLoginUnix}} -{{DateFmtShort .LastLogin }} | - {{else}} -{{$.i18n.Tr "admin.users.never_login"}} | - {{end}} -- |
ID | +{{.i18n.Tr "admin.users.name"}} | +{{.i18n.Tr "email"}} | +{{.i18n.Tr "admin.users.activated"}} | +{{.i18n.Tr "admin.users.admin"}} | +{{.i18n.Tr "admin.users.repos"}} | +{{.i18n.Tr "admin.users.created"}} | +{{.i18n.Tr "admin.users.last_login"}} | +{{.i18n.Tr "admin.users.edit"}} | +|
---|---|---|---|---|---|---|---|---|---|
{{.ID}} | +{{.Name}} | +{{.Email}} | ++ | + | {{.NumRepos}} | +{{DateFmtShort .Created }} | + {{if .LastLoginUnix}} +{{DateFmtShort .LastLogin }} | + {{else}} +{{$.i18n.Tr "admin.users.never_login"}} | + {{end}} ++ |