public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            AddBlockedNumberModule mod = new AddBlockedNumberModule();

            menuList.New(mod.GetAction_Add(AddUrl), location);
            return(menuList);
        }
예제 #2
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            if (location == ModuleAction.ActionLocationEnum.ModuleLinks)
            {
                using (LogDataProvider logDP = new LogDataProvider()) {
                    if (logDP.CanBrowse)
                    {
                        menuList.New(await GetAction_RemoveAllAsync());
                    }
                    else
                    {
                        menuList.New(await GetAction_DownloadZippedLogAsync());
                        menuList.New(await GetAction_DownloadLogAsync());
                    }
                }
            }
            return(menuList);
        }
예제 #3
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList baseMenuList = await base.GetModuleMenuListAsync(renderMode, location);

            MenuList menuList = new MenuList();

            PageEditModule modEdit = new PageEditModule();

            menuList.New(await modEdit.GetAction_EditAsync(null), location);
            menuList.New(await GetAction_ExportPageAsync(null), location);
            menuList.New(await modEdit.GetAction_RemoveAsync(null), location);

            menuList.New(GetAction_SwitchToView(), location);
            menuList.New(GetAction_SwitchToEdit(), location);

            menuList.New(await GetAction_W3CValidationAsync(), location);
            menuList.New(await GetAction_RestartSite(), location);
            menuList.New(GetAction_ClearJsCssCache(), location);

            menuList.AddRange(baseMenuList);
            return(menuList);
        }
예제 #4
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            SiteAnnouncementModule mod = new SiteAnnouncementModule();

            menuList.New(mod.GetAction_Send(SendUrl), location);
            return(menuList);
        }
예제 #5
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            SchedulerAddModule mod = new SchedulerAddModule();

            menuList.New(mod.GetAction_Add(AddUrl), location);
            LogBrowseModule logMod = new LogBrowseModule();

            menuList.NewIf(logMod.GetAction_Items(LogUrl), ModuleAction.ActionLocationEnum.ModuleLinks, location);
            return(menuList);
        }
예제 #6
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            MenuEditModule mod = new MenuEditModule();

            menuList.New(mod.GetAction_Edit(EditUrl, ModuleGuid), location);
            return(menuList);
        }
예제 #7
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            return(menuList);
        }
예제 #8
0
        public override async Task <MenuList> GetModuleMenuListAsync(ModuleAction.RenderModeEnum renderMode, ModuleAction.ActionLocationEnum location)
        {
            MenuList menuList = await base.GetModuleMenuListAsync(renderMode, location);

            EntryEditModule mod = new EntryEditModule();
            int             blogEntry;

            if (Manager.TryGetUrlArg <int>("BlogEntry", out blogEntry))
            {
                menuList.New(await mod.GetAction_EditAsync(EditUrl, blogEntry), location);
            }
            BlogModule blogMod = new BlogModule();

            menuList.New(await blogMod.GetAction_RssFeedAsync(), location);
            return(menuList);
        }