feat: 前台系统增加演示系统开关
This commit is contained in:
parent
8d516e4882
commit
f65cbcb461
|
@ -17,8 +17,14 @@ namespace Bootstrap.Client.Models
|
||||||
Title = DictHelper.RetrieveWebTitle(AppId);
|
Title = DictHelper.RetrieveWebTitle(AppId);
|
||||||
Footer = DictHelper.RetrieveWebFooter(AppId);
|
Footer = DictHelper.RetrieveWebFooter(AppId);
|
||||||
Theme = DictHelper.RetrieveActiveTheme();
|
Theme = DictHelper.RetrieveActiveTheme();
|
||||||
|
IsDemo = DictHelper.RetrieveSystemModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否为演示系统
|
||||||
|
/// </summary>
|
||||||
|
public bool IsDemo { get; protected set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得 应用程序标识
|
/// 获得 应用程序标识
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@model ModelBase
|
@model ModelBase
|
||||||
<footer class="position-fixed">
|
<footer class="position-fixed">
|
||||||
<div><span id="websiteFooter">@Model.Footer (演示系统)</span></div>
|
<div><span id="websiteFooter">@Model.Footer</span><span asp-condition="@Model.IsDemo">(演示系统)</span></div>
|
||||||
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
|
<a id="gotoTop" href="#" class="go-top" title="返回顶部" data-toggle="tooltip" data-placement="left">
|
||||||
<i class="fa fa-angle-up"></i>
|
<i class="fa fa-angle-up"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
@using Bootstrap.Client
|
@using Bootstrap.Client
|
||||||
@using Bootstrap.Client.Models
|
@using Bootstrap.Client.Models
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
@addTagHelper *, Bootstrap.Security.Mvc
|
||||||
|
@addTagHelper *, Longbow.Web
|
Loading…
Reference in New Issue