예제 #1
0
 public ActionResult Dashboard(string filter)
 {
     var vd = new DashboardModel
         {
             Nodes = DashboardData.AllNodes.Where(n => !Current.Settings.Dashboard.ExcludePatternRegex.IsMatch(n.Name)).ToList(),
             ErrorMessages = DashboardData.ProviderExceptions,
             Filter = filter
         };
     return View(Current.IsAjaxRequest ? "Dashboard.Table" : "Dashboard", vd);
 }
예제 #2
0
        public ActionResult Dashboard(string filter, bool ajax = false)
        {
            SetMainTab(MainTab.Dashboard);

            var vd = new DashboardModel
                {
                    Nodes = DashboardData.AllNodes.Where(n => !Current.Settings.Dashboard.ExcludePatternRegex.IsMatch(n.Name)).ToList(),
                    ErrorMessages = DashboardData.ProviderExceptions,
                    Filter = filter
                };
            return View(ajax ? "Dashboard.Table" : "Dashboard", vd);
        }