|
19 | 19 | <dt>{{.i18n.Tr "admin.config.domain"}}</dt> |
20 | 20 | <dd>{{.Domain}}</dd> |
21 | 21 | <dt>{{.i18n.Tr "admin.config.offline_mode"}}</dt> |
22 | | - <dd><i class="fa fa{{if .OfflineMode}}-check{{end}}-square-o"></i></dd> |
| 22 | + <dd>{{if .OfflineMode}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
23 | 23 | <dt>{{.i18n.Tr "admin.config.disable_router_log"}}</dt> |
24 | | - <dd><i class="fa fa{{if .DisableRouterLog}}-check{{end}}-square-o"></i></dd> |
| 24 | + <dd>{{if .DisableRouterLog}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
25 | 25 |
|
26 | 26 | <div class="ui divider"></div> |
27 | 27 |
|
|
67 | 67 | <div class="ui attached table segment"> |
68 | 68 | <dl class="dl-horizontal admin-dl-horizontal"> |
69 | 69 | <dt>{{.i18n.Tr "admin.config.ssh_enabled"}}</dt> |
70 | | - <dd><i class="fa fa{{if not .SSH.Disabled}}-check{{end}}-square-o"></i></dd> |
| 70 | + <dd>{{if not .SSH.Disabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
71 | 71 | {{if not .SSH.Disabled}} |
72 | 72 | <dt>{{.i18n.Tr "admin.config.ssh_start_builtin_server"}}</dt> |
73 | | - <dd><i class="fa fa{{if .SSH.StartBuiltinServer}}-check{{end}}-square-o"></i></dd> |
| 73 | + <dd>{{if not .SSH.StartBuiltinServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
74 | 74 | <dt>{{.i18n.Tr "admin.config.ssh_domain"}}</dt> |
75 | 75 | <dd>{{.SSH.Domain}}</dd> |
76 | 76 | <dt>{{.i18n.Tr "admin.config.ssh_port"}}</dt> |
|
86 | 86 | <dt>{{.i18n.Tr "admin.config.ssh_keygen_path"}}</dt> |
87 | 87 | <dd>{{.SSH.KeygenPath}}</dd> |
88 | 88 | <dt>{{.i18n.Tr "admin.config.ssh_minimum_key_size_check"}}</dt> |
89 | | - <dd><i class="fa fa{{if .SSH.MinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd> |
| 89 | + <dd>{{if .SSH.MinimumKeySizeCheck}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
90 | 90 | {{if .SSH.MinimumKeySizeCheck}} |
91 | 91 | <dt>{{.i18n.Tr "admin.config.ssh_minimum_key_sizes"}}</dt> |
92 | 92 | <dd>{{.SSH.MinimumKeySizes}}</dd> |
|
102 | 102 | <div class="ui attached table segment"> |
103 | 103 | <dl class="dl-horizontal admin-dl-horizontal"> |
104 | 104 | <dt>{{.i18n.Tr "admin.config.lfs_enabled"}}</dt> |
105 | | - <dd><i class="fa fa{{if .LFS.StartServer}}-check{{end}}-square-o"></i></dd> |
| 105 | + <dd>{{if .LFS.StartServer}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
106 | 106 | {{if .LFS.StartServer}} |
107 | 107 | <dt>{{.i18n.Tr "admin.config.lfs_content_path"}}</dt> |
108 | 108 | <dd>{{.LFS.Path}}</dd> |
|
146 | 146 | <div class="ui attached table segment"> |
147 | 147 | <dl class="dl-horizontal admin-dl-horizontal"> |
148 | 148 | <dt>{{.i18n.Tr "admin.config.register_email_confirm"}}</dt> |
149 | | - <dd><i class="fa fa{{if .Service.RegisterEmailConfirm}}-check{{end}}-square-o"></i></dd> |
| 149 | + <dd>{{if .Service.RegisterEmailConfirm}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
150 | 150 | <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt> |
151 | | - <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd> |
| 151 | + <dd>{{if .Service.DisableRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
152 | 152 | <dt>{{.i18n.Tr "admin.config.allow_only_external_registration"}}</dt> |
153 | | - <dd><i class="fa fa{{if .Service.AllowOnlyExternalRegistration}}-check{{end}}-square-o"></i></dd> |
| 153 | + <dd>{{if .Service.AllowOnlyExternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
154 | 154 | <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt> |
155 | | - <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd> |
| 155 | + <dd>{{if .Service.ShowRegistrationButton}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
156 | 156 | <dt>{{.i18n.Tr "admin.config.enable_openid_signup"}}</dt> |
157 | | - <dd><i class="fa fa{{if .Service.EnableOpenIDSignUp}}-check{{end}}-square-o"></i></dd> |
| 157 | + <dd>{{if .Service.EnableOpenIDSignUp}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
158 | 158 | <dt>{{.i18n.Tr "admin.config.enable_openid_signin"}}</dt> |
159 | | - <dd><i class="fa fa{{if .Service.EnableOpenIDSignIn}}-check{{end}}-square-o"></i></dd> |
| 159 | + <dd>{{if .Service.EnableOpenIDSignIn}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
160 | 160 | <dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt> |
161 | | - <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd> |
| 161 | + <dd>{{if .Service.RequireSignInView}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
162 | 162 | <dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt> |
163 | | - <dd><i class="fa fa{{if .Service.EnableNotifyMail}}-check{{end}}-square-o"></i></dd> |
164 | | - {{/*<dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt> |
165 | | - <dd><i class="fa fa{{if .Service.DisableMinimumKeySizeCheck}}-check{{end}}-square-o"></i></dd>*/}} |
| 163 | + <dd>{{if .Service.EnableNotifyMail}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
| 164 | + <dt>{{.i18n.Tr "admin.config.disable_key_size_check"}}</dt> |
| 165 | + <dd>{{if .SSH.MinimumKeySizeCheck}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
166 | 166 | <dt>{{.i18n.Tr "admin.config.enable_captcha"}}</dt> |
167 | | - <dd><i class="fa fa{{if .Service.EnableCaptcha}}-check{{end}}-square-o"></i></dd> |
| 167 | + <dd>{{if .Service.EnableCaptcha}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
168 | 168 | <dt>{{.i18n.Tr "admin.config.default_keep_email_private"}}</dt> |
169 | | - <dd><i class="fa fa{{if .Service.DefaultKeepEmailPrivate}}-check{{end}}-square-o"></i></dd> |
| 169 | + <dd>{{if .Service.DefaultKeepEmailPrivate}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
170 | 170 | <dt>{{.i18n.Tr "admin.config.default_allow_create_organization"}}</dt> |
171 | | - <dd><i class="fa fa{{if .Service.DefaultAllowCreateOrganization}}-check{{end}}-square-o"></i></dd> |
| 171 | + <dd>{{if .Service.DefaultAllowCreateOrganization}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
172 | 172 | <dt>{{.i18n.Tr "admin.config.enable_timetracking"}}</dt> |
173 | | - <dd><i class="fa fa{{if .Service.EnableTimetracking}}-check{{end}}-square-o"></i></dd> |
| 173 | + <dd>{{if .Service.EnableTimetracking}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
174 | 174 | {{if .Service.EnableTimetracking}} |
175 | 175 | <dt>{{.i18n.Tr "admin.config.default_enable_timetracking"}}</dt> |
176 | | - <dd><i class="fa fa{{if .Service.DefaultEnableTimetracking}}-check{{end}}-square-o"></i></dd> |
| 176 | + <dd>{{if .Service.DefaultEnableTimetracking}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
177 | 177 | <dt>{{.i18n.Tr "admin.config.default_allow_only_contributors_to_track_time"}}</dt> |
178 | | - <dd><i class="fa fa{{if .Service.DefaultAllowOnlyContributorsToTrackTime}}-check{{end}}-square-o"></i></dd> |
| 178 | + <dd>{{if .Service.DefaultAllowOnlyContributorsToTrackTime}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
179 | 179 | {{end}} |
180 | 180 | <dt>{{.i18n.Tr "admin.config.default_visibility_organization"}}</dt> |
181 | 181 | <dd>{{.Service.DefaultOrgVisibility}}</dd> |
182 | 182 |
|
183 | 183 | <dt>{{.i18n.Tr "admin.config.no_reply_address"}}</dt> |
184 | 184 | <dd>{{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}</dd> |
185 | 185 | <dt>{{.i18n.Tr "admin.config.default_enable_dependencies"}}</dt> |
186 | | - <dd><i class="fa fa{{if .Service.DefaultEnableDependencies}}-check{{end}}-square-o"></i></dd> |
| 186 | + <dd>{{if .Service.DefaultEnableDependencies}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
187 | 187 | <div class="ui divider"></div> |
188 | 188 | <dt>{{.i18n.Tr "admin.config.active_code_lives"}}</dt> |
189 | 189 | <dd>{{.Service.ActiveCodeLives}} {{.i18n.Tr "tool.raw_minutes"}}</dd> |
|
202 | 202 | <dt>{{.i18n.Tr "admin.config.deliver_timeout"}}</dt> |
203 | 203 | <dd>{{.Webhook.DeliverTimeout}} {{.i18n.Tr "tool.raw_seconds"}}</dd> |
204 | 204 | <dt>{{.i18n.Tr "admin.config.skip_tls_verify"}}</dt> |
205 | | - <dd><i class="fa fa{{if .Webhook.SkipTLSVerify}}-check{{end}}-square-o"></i></dd> |
| 205 | + <dd>{{if .Webhook.SkipTLSVerify}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
206 | 206 | </dl> |
207 | 207 | </div> |
208 | 208 |
|
|
212 | 212 | <div class="ui attached table segment"> |
213 | 213 | <dl class="dl-horizontal admin-dl-horizontal"> |
214 | 214 | <dt>{{.i18n.Tr "admin.config.mailer_enabled"}}</dt> |
215 | | - <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd> |
| 215 | + <dd>{{if .MailerEnabled}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
216 | 216 | {{if .MailerEnabled}} |
217 | 217 | <dt>{{.i18n.Tr "admin.config.mailer_name"}}</dt> |
218 | 218 | <dd>{{.Mailer.Name}}</dd> |
219 | 219 | {{if eq .Mailer.MailerType "smtp"}} |
220 | 220 | <dt>{{.i18n.Tr "admin.config.mailer_disable_helo"}}</dt> |
221 | | - <dd><i class="fa fa{{if .Mailer.DisableHelo}}-check{{end}}-square-o"></i></dd> |
| 221 | + <dd>{{if .DisableHelo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
222 | 222 | <dt>{{.i18n.Tr "admin.config.mailer_host"}}</dt> |
223 | 223 | <dd>{{.Mailer.Host}}</dd> |
224 | 224 | {{else if eq .Mailer.MailerType "sendmail"}} |
225 | 225 | <dt>{{.i18n.Tr "admin.config.mailer_use_sendmail"}}</dt> |
226 | | - <dd><i class="fa fa-check-square-o"></i></dd> |
| 226 | + <dd>{{svg "octicon-check"}}</dd> |
227 | 227 | <dt>{{.i18n.Tr "admin.config.mailer_sendmail_path"}}</dt> |
228 | 228 | <dd>{{.Mailer.SendmailPath}}</dd> |
229 | 229 | <dt>{{.i18n.Tr "admin.config.mailer_sendmail_args"}}</dt> |
|
282 | 282 | <dt>{{.i18n.Tr "admin.config.session_life_time"}}</dt> |
283 | 283 | <dd>{{.SessionConfig.Maxlifetime}} {{.i18n.Tr "tool.raw_seconds"}}</dd> |
284 | 284 | <dt>{{.i18n.Tr "admin.config.https_only"}}</dt> |
285 | | - <dd><i class="fa fa{{if .SessionConfig.Secure}}-check{{end}}-square-o"></i></dd> |
| 285 | + <dd>{{if .SessionConfig.Secure}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
286 | 286 | </dl> |
287 | 287 | </div> |
288 | 288 |
|
|
292 | 292 | <div class="ui attached table segment"> |
293 | 293 | <dl class="dl-horizontal admin-dl-horizontal"> |
294 | 294 | <dt>{{.i18n.Tr "admin.config.disable_gravatar"}}</dt> |
295 | | - <dd><i class="fa fa{{if .DisableGravatar}}-check{{end}}-square-o"></i></dd> |
| 295 | + <dd>{{if .DisableGravatar}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
296 | 296 | <div class="ui divider"></div> |
297 | 297 | <dt>{{.i18n.Tr "admin.config.enable_federated_avatar"}}</dt> |
298 | | - <dd><i class="fa fa{{if .EnableFederatedAvatar}}-check{{end}}-square-o"></i></dd> |
| 298 | + <dd>{{if .EnableFederatedAvatar}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
299 | 299 | </dl> |
300 | 300 | </div> |
301 | 301 |
|
|
305 | 305 | <div class="ui attached table segment"> |
306 | 306 | <dl class="dl-horizontal admin-dl-horizontal"> |
307 | 307 | <dt>{{.i18n.Tr "admin.config.git_disable_diff_highlight"}}</dt> |
308 | | - <dd><i class="fa fa{{if .Git.DisableDiffHighlight}}-check{{end}}-square-o"></i></dd> |
| 308 | + <dd>{{if .Git.DisableDiffHighlight}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
309 | 309 | <dt>{{.i18n.Tr "admin.config.git_max_diff_lines"}}</dt> |
310 | 310 | <dd>{{.Git.MaxGitDiffLines}}</dd> |
311 | 311 | <dt>{{.i18n.Tr "admin.config.git_max_diff_line_characters"}}</dt> |
|
411 | 411 | <dd>{{$.i18n.Tr "admin.config.routes_to_default_logger"}}</dd> |
412 | 412 | {{end}} |
413 | 413 | <dt>{{$.i18n.Tr "admin.config.xorm_log_sql"}}</dt> |
414 | | - <dd><i class="fa fa{{if $.LogSQL}}-check{{end}}-square-o"></i></dd> |
| 414 | + <dd>{{if $.LogSQL}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> |
415 | 415 | {{else}} |
416 | 416 | <dd>{{$.i18n.Tr "admin.config.disabled_logger"}}</dd> |
417 | 417 | {{end}} |
|
0 commit comments