2016-10-21 16:35:26 +08:00
|
|
|
|
using Bootstrap.DataAccess;
|
2017-04-03 15:56:17 +08:00
|
|
|
|
using Bootstrap.Security;
|
2018-06-07 00:45:47 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2016-10-21 16:35:26 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin.Models
|
|
|
|
|
{
|
|
|
|
|
public class NavigatorBarModel : HeaderBarModel
|
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
public NavigatorBarModel(ControllerBase controller) : base(controller.User.Identity)
|
2016-10-21 16:35:26 +08:00
|
|
|
|
{
|
2018-06-12 11:50:52 +08:00
|
|
|
|
Navigations = BootstrapMenu.RetrieveSystemMenus(UserName, $"~{controller.HttpContext.Request.Path}");
|
2017-03-03 13:34:53 +08:00
|
|
|
|
Applications = DictHelper.RetrieveApps();
|
2016-10-21 16:35:26 +08:00
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2017-04-03 15:56:17 +08:00
|
|
|
|
public IEnumerable<BootstrapMenu> Navigations { get; private set; }
|
2017-03-03 13:34:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2017-03-30 15:32:49 +08:00
|
|
|
|
public IEnumerable<KeyValuePair<string, string>> Applications { get; private set; }
|
2016-10-21 16:35:26 +08:00
|
|
|
|
}
|
2016-10-20 17:55:29 +08:00
|
|
|
|
}
|