Added customization for setting a default theme
This commit is contained in:
parent
cb8e12d01d
commit
d1e58f7f2a
|
@ -1,7 +1,10 @@
|
|||
@using System.Globalization
|
||||
@using Microsoft.AspNetCore.Localization
|
||||
@using Microsoft.Extensions.Options
|
||||
@using Wave.Data
|
||||
@inject IOptions<Customization> Customizations
|
||||
<!DOCTYPE html>
|
||||
<html lang="@CultureInfo.CurrentUICulture.ToString()" data-theme="@UserTheme">
|
||||
<html lang="@CultureInfo.CurrentUICulture.ToString()" data-theme="@(UserTheme ?? Customizations.Value.DefaultTheme)">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
public class Customization {
|
||||
public string AppName { get; set; } = "Wave";
|
||||
public string DefaultTheme { get; set; } = "";
|
||||
public string LogoLink { get; set; } = "";
|
||||
public string Footer { get; set; } = "";
|
||||
}
|
Loading…
Reference in a new issue