.div() ._("Content has moved ") .a(location, "here")._() ._()._(); writer.close();
.div() ._("Content has moved ") .a(location, "here")._() ._()._(); writer.close();
.div() ._("Content has moved ") .a(location, "here")._() ._()._(); writer.close();
div("#footer"). _("Brought to you by"). a("http://hostname/", "Somebody")._();
div("#footer"). _("Brought to you by"). a("http://hostname/", "Somebody")._();
div("#footer"). _("Brought to you by"). a("http://hostname/", "Somebody")._();
@Override protected void render(Block html) { String userName = null; try { userName = UserGroupInformation.getCurrentUser().getShortUserName(); } catch (IOException e) { LOG.error("error while geting userName", e); } html.h2()._("Application Id :" + $(MPIWebConst.APP_ID))._(); int numContainers = Integer.parseInt($(MPIWebConst.CONTAINER_NUMBER)); for (int i = 1; i <= numContainers; i++) { html.div().a( String.format("http://%s/node/containerlogs/%s/" + userName, $(MPIWebConst.CONTAINER_HTTP_ADDRESS_PREFIX + i), $(MPIWebConst.CONTAINER_ID_PREFIX + i)), String.format("Container Logs: %s", $(MPIWebConst.CONTAINER_ID_PREFIX + i))) ._(" Status:" + $(MPIWebConst.CONTAINER_STATUS_PREFIX + i))._(); } html.div()._("by Zhuoluo (zhuoluo.yzl@taobao.com)")._(); } }
@Override protected void render(Page.HTML<_> html) { set(JQueryUI.ACCORDION_ID, "msg"); String title = "Sorry, got error "+ status(); html. title(title). link(root_url("static","yarn.css")). _(JQueryUI.class). // an embedded sub-view style("#msg { margin: 1em auto; width: 88%; }", "#msg h1 { padding: 0.2em 1.5em; font: bold 1.3em serif; }"). div("#msg"). h1(title). div(). _("Please consult"). a("http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "RFC 2616")._(" for meanings of the error code.")._(). h1("Error Details"). pre(). _(errorDetails())._()._()._(); }
@Override protected void render(Page.HTML<_> html) { set(JQueryUI.ACCORDION_ID, "msg"); String title = "Sorry, got error "+ status(); html. title(title). link(root_url("static","yarn.css")). _(JQueryUI.class). // an embedded sub-view style("#msg { margin: 1em auto; width: 88%; }", "#msg h1 { padding: 0.2em 1.5em; font: bold 1.3em serif; }"). div("#msg"). h1(title). div(). _("Please consult"). a("http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "RFC 2616")._(" for meanings of the error code.")._(). h1("Error Details"). pre(). _(errorDetails())._()._()._(); }
@Override public DIV<T> a(String href, String anchorText) { return a().$href(href)._(anchorText)._(); }
@Override public DIV<T> a(String selector, String href, String anchorText) { return setSelector(a(), selector).$href(href)._(anchorText)._(); }
@Override public A<DIV<T>> a(String selector) { return setSelector(a(), selector); }
@Override public DIV<T> a(String selector, String href, String anchorText) { return setSelector(a(), selector).$href(href)._(anchorText)._(); }
@Override public DIV<T> a(String href, String anchorText) { return a().$href(href)._(anchorText)._(); }
@Override public A<DIV<T>> a(String selector) { return setSelector(a(), selector); }
@Override public DIV<T> a(String selector, String href, String anchorText) { return setSelector(a(), selector).$href(href)._(anchorText)._(); }
@Override public DIV<T> a(String href, String anchorText) { return a().$href(href)._(anchorText)._(); }
@Override public A<DIV<T>> a(String selector) { return setSelector(a(), selector); }