public override IList<NavigationSectionModel> RegisterNavigation() { var sections = new List<NavigationSectionModel>(); HttpContextWrapper httpContextWrapper = new HttpContextWrapper(System.Web.HttpContext.Current); UrlHelper urlHelper = new UrlHelper(new RequestContext(httpContextWrapper, new RouteData())); var section = new NavigationSectionModel { Icon = urlHelper.Content("~/Areas/Admin/Content/images/menu-inbox.png"), Name = "moderationqueue", Position = 1, RequiredPermissions = new List<PermissionRecord> { PermissionProvider.ManageModerationQueue }, Target = urlHelper.Action("index", "moderation", new { area = "admin" }), Title = "Moderation Queue" }; section.AddChildLink("Manage Moderation Queue", urlHelper.Action("index", "moderation", new { area = "admin" })); sections.Add(section); return sections; }
public override IList<NavigationSectionModel> RegisterNavigation() { var sections = new List<NavigationSectionModel>(); var httpContextWrapper = new HttpContextWrapper(System.Web.HttpContext.Current); var urlHelper = new UrlHelper(new RequestContext(httpContextWrapper, new RouteData())); var section = new NavigationSectionModel { Icon = urlHelper.Content("~/Areas/Admin/Content/images/menu-settings.png"), Name = "Categories", Position = 999, RequiredPermissions = new List<PermissionRecord> { PermissionProvider.ManageSettings }, Target = urlHelper.Action("index", "setting", new { area = "admin" }), Title = "Settings" }; section.AddChildLink("General Settings", urlHelper.Action("index", "setting", new { area = "admin" })); section.AddChildLink("Site Owner Settings", urlHelper.Action("siteowner", "setting", new { area = "admin" }), new List<PermissionRecord> { PermissionProvider.ManageSiteOwner }); sections.Add(section); return sections; }
public override IList<NavigationSectionModel> RegisterNavigation() { var sections = new List<NavigationSectionModel>(); HttpContextWrapper httpContextWrapper = new HttpContextWrapper(System.Web.HttpContext.Current); UrlHelper urlHelper = new UrlHelper(new RequestContext(httpContextWrapper, new RouteData())); var section = new NavigationSectionModel { Icon = urlHelper.Content("~/Areas/Admin/Content/images/menu-projects.png"), Name = "project", Position = 2, RequiredPermissions = new List<PermissionRecord> { PermissionProvider.ManageProjects }, Target = urlHelper.Action("index", "project", new { area = "admin", filter = (int)ProjectStatus.Open }), Title = "Actions" }; section.AddChildLink("Manage Actions", urlHelper.Action("index", "project", new { area = "admin", filter = (int)ProjectStatus.Open })); section.AddChildLink("Manage Categories", urlHelper.Action("index", "category", new { area = "admin" })); section.AddChildLink("Manage Comments", urlHelper.Action("index", "comment", new { area = "admin" })); sections.Add(section); return sections; }
public override IList<NavigationSectionModel> RegisterNavigation() { var sections = new List<NavigationSectionModel>(); var httpContextWrapper = new HttpContextWrapper(System.Web.HttpContext.Current); var urlHelper = new UrlHelper(new RequestContext(httpContextWrapper, new RouteData())); var section = new NavigationSectionModel { Icon = urlHelper.Content("~/Areas/Admin/Content/images/menu-pages.png"), Name = "successstory", Position = 5, RequiredPermissions = new List<PermissionRecord> { PermissionProvider.ManageSuccessStories }, Target = urlHelper.Action("index", "successstory", new { area = "admin" }), Title = "Blog" }; section.AddChildLink("Manage Posts", urlHelper.Action("index", "successstory", new { area = "admin" })); sections.Add(section); return sections; }