File tree Expand file tree Collapse file tree 4 files changed +28
-24
lines changed
templates/admin/config_settings Expand file tree Collapse file tree 4 files changed +28
-24
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
28
28
const (
29
29
tplConfig templates.TplName = "admin/config"
30
- tplConfigSettings templates.TplName = "admin/config_settings"
30
+ tplConfigSettings templates.TplName = "admin/config_settings/config_settings "
31
31
)
32
32
33
33
// SendTestMail send test mail to confirm mail service is OK
Original file line number Diff line number Diff line change
1
+ <h4 class="ui top attached header">
2
+ {{ctx.Locale.Tr "admin.config.picture_config"}}
3
+ </h4>
4
+ <div class="ui attached table segment">
5
+ <dl class="admin-dl-horizontal">
6
+ <dt>{{ctx.Locale.Tr "admin.config.disable_gravatar"}}</dt>
7
+ <dd>
8
+ <div class="ui toggle checkbox" data-tooltip-content="{{ctx.Locale.Tr "admin.config.disable_gravatar"}}">
9
+ <input type="checkbox" data-config-dyn-key="picture.disable_gravatar" {{if .SystemConfig.Picture.DisableGravatar.Value ctx}}checked{{end}}><label></label>
10
+ </div>
11
+ </dd>
12
+ <div class="divider"></div>
13
+ <dt>{{ctx.Locale.Tr "admin.config.enable_federated_avatar"}}</dt>
14
+ <dd>
15
+ <div class="ui toggle checkbox" data-tooltip-content="{{ctx.Locale.Tr "admin.config.enable_federated_avatar"}}">
16
+ <input type="checkbox" data-config-dyn-key="picture.enable_federated_avatar" {{if .SystemConfig.Picture.EnableFederatedAvatar.Value ctx}}checked{{end}}><label></label>
17
+ </div>
18
+ </dd>
19
+ </dl>
20
+ </div>
Original file line number Diff line number Diff line change
1
+ {{ template " admin/layout_head" (dict " ctxData" . " pageClass" " admin config" )}}
2
+
3
+ {{ template " admin/config_settings/avatars" .}}
4
+
5
+ {{ template " admin/config_settings/repository" .}}
6
+
7
+ {{ template " admin/layout_footer" .}}
Original file line number Diff line number Diff line change 1
- {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
2
- <h4 class="ui top attached header">
3
- {{ctx.Locale.Tr "admin.config.picture_config"}}
4
- </h4>
5
- <div class="ui attached table segment">
6
- <dl class="admin-dl-horizontal">
7
- <dt>{{ctx.Locale.Tr "admin.config.disable_gravatar"}}</dt>
8
- <dd>
9
- <div class="ui toggle checkbox" data-tooltip-content="{{ctx.Locale.Tr "admin.config.disable_gravatar"}}">
10
- <input type="checkbox" data-config-dyn-key="picture.disable_gravatar" {{if .SystemConfig.Picture.DisableGravatar.Value ctx}}checked{{end}}><label></label>
11
- </div>
12
- </dd>
13
- <div class="divider"></div>
14
- <dt>{{ctx.Locale.Tr "admin.config.enable_federated_avatar"}}</dt>
15
- <dd>
16
- <div class="ui toggle checkbox" data-tooltip-content="{{ctx.Locale.Tr "admin.config.enable_federated_avatar"}}">
17
- <input type="checkbox" data-config-dyn-key="picture.enable_federated_avatar" {{if .SystemConfig.Picture.EnableFederatedAvatar.Value ctx}}checked{{end}}><label></label>
18
- </div>
19
- </dd>
20
- </dl>
21
- </div>
22
-
23
1
<h4 class="ui top attached header">
24
2
{{ctx.Locale.Tr "repository"}}
25
3
</h4>
48
26
</div>
49
27
</form>
50
28
</div>
51
- {{template "admin/layout_footer" .}}
You can’t perform that action at this time.
0 commit comments