feat: 前台系统增加演示系统开关
This commit is contained in:
parent
8d516e4882
commit
f65cbcb461
|
@ -17,8 +17,14 @@ namespace Bootstrap.Client.Models
|
|||
Title = DictHelper.RetrieveWebTitle(AppId);
|
||||
Footer = DictHelper.RetrieveWebFooter(AppId);
|
||||
Theme = DictHelper.RetrieveActiveTheme();
|
||||
IsDemo = DictHelper.RetrieveSystemModel();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否为演示系统
|
||||
/// </summary>
|
||||
public bool IsDemo { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获得 应用程序标识
|
||||
/// </summary>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
@model ModelBase
|
||||
<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">
|
||||
<i class="fa fa-angle-up"></i>
|
||||
</a>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@using Bootstrap.Client
|
||||
@using Bootstrap.Client.Models
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@addTagHelper *, Bootstrap.Security.Mvc
|
||||
@addTagHelper *, Longbow.Web
|
Loading…
Reference in New Issue