// Do NOT rename/refactor this to AHSView as it will wreak havoc // on Mac OS HFS // direct table rendering // inline js array protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); Set(JQueryUI.DatatablesId, "apps"); Set(JQueryUI.InitID(JQueryUI.Datatables, "apps"), WebPageUtils.AppsTableInit()); SetTableStyles(html, "apps", ".queue {width:6em}", ".ui {width:8em}"); // Set the correct title. string reqState = $(YarnWebParams.AppState); reqState = (reqState == null || reqState.IsEmpty() ? "All" : reqState); SetTitle(StringHelper.Sjoin(reqState, "Applications")); }
protected override void PreHead(Hamlet.HTML <HtmlPage._> html) { CommonPreHead(html); string appAttemptId = $(YarnWebParams.ApplicationAttemptId); Set(Title, appAttemptId.IsEmpty() ? "Bad request: missing application attempt ID" : StringHelper.Join("Application Attempt ", $(YarnWebParams.ApplicationAttemptId ))); Set(JQueryUI.DatatablesId, "containers"); Set(JQueryUI.InitID(JQueryUI.Datatables, "containers"), WebPageUtils.ContainersTableInit ()); SetTableStyles(html, "containers", ".queue {width:6em}", ".ui {width:8em}"); Set(YarnWebParams.WebUiType, YarnWebParams.AppHistoryWebUi); }
protected internal override string InitAppsTable() { return(WebPageUtils.AppsTableInit(true)); }
protected internal virtual string InitAppsTable() { return(WebPageUtils.AppsTableInit()); }