Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Upstream
Gitea
Commits
1e8a6164
Commit
1e8a6164
authored
6 years ago
by
Lunny Xiao
Committed by
zeripath
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
show lfs config on admin panel (#7220)
parent
d8168b35
main
release/v1.10
release/v1.11
release/v1.12
release/v1.13
release/v1.14
release/v1.15
release/v1.16
release/v1.17
release/v1.18
release/v1.9
v1.19.0-dev
v1.18.1
v1.18.0
v1.18.0-rc1
v1.18.0-rc0
v1.18.0-dev
v1.17.4
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.17.0-rc1
v1.17.0-dev
v1.16.9
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0
v1.16.0-rc1
v1.16.0-dev
v1.15.11
v1.15.10
v1.15.9
v1.15.8
v1.15.7
v1.15.6
v1.15.5
v1.15.4
v1.15.3
v1.15.2
v1.15.1
v1.15.0
v1.15.0-rc3
v1.15.0-rc2
v1.15.0-rc1
v1.15.0-dev
v1.14.7
v1.14.6
v1.14.5
v1.14.4
v1.14.3
v1.14.2
v1.14.1
v1.14.0
v1.14.0-rc2
v1.14.0-rc1
v1.14.0-dev
v1.13.7
v1.13.6
v1.13.5
v1.13.4
v1.13.3
v1.13.2
v1.13.1
v1.13.0
v1.13.0-rc2
v1.13.0-rc1
v1.13.0-dev
v1.12.6
v1.12.5
v1.12.4
v1.12.3
v1.12.2
v1.12.1
v1.12.0
v1.12.0-rc2
v1.12.0-rc1
v1.12.0-dev
v1.11.8
v1.11.7
v1.11.6
v1.11.5
v1.11.4
v1.11.3
v1.11.2
v1.11.1
v1.11.0
v1.11.0-rc2
v1.11.0-rc1
v1.11.0-dev
v1.10.6
v1.10.5
v1.10.4
v1.10.3
v1.10.2
v1.10.1
v1.10.0
v1.10.0-rc2
v1.10.0-rc1
v1.10.0-dev
v1.9.6
v1.9.5
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.9.0-rc2
v1.9.0-rc1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
options/locale/locale_en-US.ini
+5
-0
options/locale/locale_en-US.ini
routers/admin/admin.go
+1
-0
routers/admin/admin.go
templates/admin/config.tmpl
+16
-0
templates/admin/config.tmpl
with
22 additions
and
0 deletions
+22
-0
options/locale/locale_en-US.ini
View file @
1e8a6164
...
...
@@ -1722,6 +1722,11 @@ config.ssh_keygen_path = Keygen ('ssh-keygen') Path
config.ssh_minimum_key_size_check
=
Minimum Key Size Check
config.ssh_minimum_key_sizes
=
Minimum Key Sizes
config.lfs_config
=
LFS Configuration
config.lfs_enabled
=
Enabled
config.lfs_content_path
=
LFS Content Path
config.lfs_http_auth_expiry
=
LFS HTTP Auth Expiry
config.db_config
=
Database Configuration
config.db_type
=
Type
config.db_host
=
Host
...
...
This diff is collapsed.
Click to expand it.
routers/admin/admin.go
View file @
1e8a6164
...
...
@@ -225,6 +225,7 @@ func Config(ctx *context.Context) {
ctx
.
Data
[
"ReverseProxyAuthEmail"
]
=
setting
.
ReverseProxyAuthEmail
ctx
.
Data
[
"SSH"
]
=
setting
.
SSH
ctx
.
Data
[
"LFS"
]
=
setting
.
LFS
ctx
.
Data
[
"Service"
]
=
setting
.
Service
ctx
.
Data
[
"DbCfg"
]
=
models
.
DbCfg
...
...
This diff is collapsed.
Click to expand it.
templates/admin/config.tmpl
View file @
1e8a6164
...
...
@@ -96,6 +96,22 @@
</dl>
</div>
<h4 class="ui top attached header">
{{.i18n.Tr "admin.config.lfs_config"}}
</h4>
<div class="ui attached table segment">
<dl class="dl-horizontal admin-dl-horizontal">
<dt>{{.i18n.Tr "admin.config.lfs_enabled"}}</dt>
<dd><i class="fa fa{{if .LFS.StartServer}}-check{{end}}-square-o"></i></dd>
{{if .LFS.StartServer}}
<dt>{{.i18n.Tr "admin.config.lfs_content_path"}}</dt>
<dd>{{.LFS.ContentPath}}</dd>
<dt>{{.i18n.Tr "admin.config.lfs_http_auth_expiry"}}</dt>
<dd>{{.LFS.HTTPAuthExpiry}}</dd>
{{end}}
</dl>
</div>
<h4 class="ui top attached header">
{{.i18n.Tr "admin.config.db_config"}}
</h4>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help