From eab15876480fa5c203c971840cc76be15c36cc15 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 23 Mar 2018 14:07:02 -0400 Subject: [PATCH] more settings on dashboard --- src/Admin/Views/Home/Index.cshtml | 120 ++++++++++++++++++++------ src/Admin/Views/Shared/_Layout.cshtml | 3 + 2 files changed, 96 insertions(+), 27 deletions(-) diff --git a/src/Admin/Views/Home/Index.cshtml b/src/Admin/Views/Home/Index.cshtml index 741618791..f5069295d 100644 --- a/src/Admin/Views/Home/Index.cshtml +++ b/src/Admin/Views/Home/Index.cshtml @@ -57,40 +57,51 @@

Version

-
-
Core Installed
-
- @Model.CurrentVersion - - -
+
+
+
+
Core Installed
+
+ @Model.CurrentVersion + + +
-
Core Latest
-
- -
+
Core Latest
+
+ +
-
Web Installed
-
- - - -
+
Web Installed
+
+ + + +
-
Web Latest
-
- -
-
+
Web Latest
+
+ +
+
+ +
+ +
+

Settings

SMTP

@if(Model.GlobalSettings.Mail.Smtp == null) { -

Not configured.

+

Not configured

} else { @@ -106,8 +117,8 @@ else
SSL
@(Model.GlobalSettings.Mail.Smtp.Ssl ? "Yes" : "No")
-
Default Credentials?
-
@(Model.GlobalSettings.Mail.Smtp.UseDefaultCredentials ? "Yes" : "No")
+
Credentials
+
@(Model.GlobalSettings.Mail.Smtp.UseDefaultCredentials ? "Default" : "Provided")
Username
@@ -115,3 +126,58 @@ else
} + +

Other

+ +
+
Installation Id
+
+ @if(Model.GlobalSettings.Installation?.Id != null) + { + @Model.GlobalSettings.Installation.Id + } + else + { + - + } +
+ +
User Registraion
+
@(Model.GlobalSettings.DisableUserRegistration ? "Disabled" : "Enabled")
+ +
Push Notifications Relay
+
+ @if(Bit.Core.Utilities.CoreHelpers.SettingHasValue(Model.GlobalSettings.PushRelayBaseUri)) + { + Configured + } + else + { + Not configured + } +
+ +
Yubico 2FA
+
+ @if(Bit.Core.Utilities.CoreHelpers.SettingHasValue(Model.GlobalSettings.Yubico?.Key) && Bit.Core.Utilities.CoreHelpers.SettingHasValue(Model.GlobalSettings.Yubico?.ClientId)) + { + Configured + } + else + { + Not configured + } +
+ +
Duo 2FA
+
+ @if(Bit.Core.Utilities.CoreHelpers.SettingHasValue(Model.GlobalSettings.Duo?.AKey)) + { + Configured + } + else + { + Not configured + } +
+
diff --git a/src/Admin/Views/Shared/_Layout.cshtml b/src/Admin/Views/Shared/_Layout.cshtml index df8bc63f8..dc3e67c35 100644 --- a/src/Admin/Views/Shared/_Layout.cshtml +++ b/src/Admin/Views/Shared/_Layout.cshtml @@ -39,6 +39,9 @@ + @if(SignInManager.IsSignedIn(User)) {