Beispiel #1
0
        protected override void PreHead(Hamlet.HTML <HtmlPage._> html)
        {
            CommonPreHead(html);
            string appId = $(YarnWebParams.ApplicationId);

            Set(Title, appId.IsEmpty() ? "Bad request: missing application ID" : StringHelper.Join
                    ("Application ", $(YarnWebParams.ApplicationId)));
            Set(JQueryUI.DatatablesId, "attempts ResourceRequests");
            Set(JQueryUI.InitID(JQueryUI.Datatables, "attempts"), WebPageUtils.AttemptsTableInit
                    ());
            SetTableStyles(html, "attempts", ".queue {width:6em}", ".ui {width:8em}");
            SetTableStyles(html, "ResourceRequests");
            Set(YarnWebParams.WebUiType, YarnWebParams.AppHistoryWebUi);
        }