Beispiel #1
0
        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);
        }