/** * Render error reporting information using the (debug) html * @param html * @throws IOException */ public void renderForErrorOn(HtmlCanvas html) throws IOException { html.h3().write(this.getClass().getName())._h3(); html.table(border("1px").cellpadding("4px")); for (String key : attributes.keySet()) { Object value = attributes.get(key); html .tr() .td().write(key)._td() .td().write(value.toString())._td() ._tr(); } html._table(); } @Override
result = result.h3().write(tag.getName() + " (" + tag.getCommit().getCommittedDate().toString(DateTimeFormat.forPattern("yyyy-MM-dd")) + ")")._h3(); DateTime tagDate = tag.getCommit().getCommittedDate();
@Override public void renderOn(HtmlCanvas html) throws IOException { html .render(DocType.HTML5) .html(lang("en")) .render(new BootstrapHeaderView()) .body() .div(class_("container")) .div(class_("row")) .div(class_("col-lg-12")) .h3() .write("Script ") .small().content(String.format("%s -> %s", fSrc.getName(), fDst.getName())) ._h3() .pre().content(ActionsIoUtils.toText(src, this.script, mappings).toString()) ._div() ._div() ._div() .render(new BootstrapFooterView()) .macros().javascript("/dist/script.js") ._body() ._html(); }
@Override public void renderOn(HtmlCanvas html) throws IOException { html .render(DocType.HTML5) .html(lang("en")) .render(new BootstrapHeaderView()) .body() .div(class_("container")) .div(class_("row")) .div(class_("col-lg-12")) .h3() .write("Script ") .small().content(String.format("%s -> %s", fSrc.getName(), fDst.getName())) ._h3() .pre().content(ActionsIoUtils.toText(src, this.script, mappings).toString()) ._div() ._div() ._div() .render(new BootstrapFooterView()) .macros().javascript("/dist/script.js") ._body() ._html(); }
html = html.h3().write("Next release")._h3(); String lastCommitId = tags.get(tags.size()-1).getCommit().getId(); if (lastCommitId != null) {
private HtmlCanvas generateSampleProfileDocumentation(HtmlCanvas html) throws IOException { HtmlCanvas sampleProfile = new HtmlCanvas(); sampleProfile = generateSampleProfile(sampleProfile); html. div(class_("section")). h3(id("Sample_Profile")).write("Sample Profile")._h3(). p().em().write("Based on above properties, here is a sample profile to include in ").a(href("https://maven.apache.org/settings.html")).write("Maven settings.xml file")._a().write(":")._em()._p(). write(sampleProfile.toHtml(), false). write(sampleProfileCommandLineGenerator, false) ._div(); addPropertyInSessionRequest("sampleProfile", sampleProfile.toHtml()); return html; }
private HtmlCanvas generateGlobalParametersSection(HtmlCanvas html) throws IOException { html. div(class_("section")). h3(id("Global_Parameters")).write("Global Parameters")._h3(). p().em().write("By default, only parameters which cannot be guessed are displayed. ")._em(). a(href("#").id("toggleGuessed")).write("Show other parameters")._a().write(" to customize default values.")._p();
@Override public void renderOn(HtmlCanvas html) throws IOException { html. div(class_("section")). h3(id("Lifecycle_"+this.getPackagingName())).a(href("packaging-"+this.getPackagingName()+".html")).write(this.getPackagingName())._a()._h3(). table(border("0").class_("bodyTable table table-striped table-hover")). thead(). tr(class_("a")). th().write("Phase")._th(). th().write("Goal")._th(). _tr() ._thead(). tbody(); for (t3.LifecyclesUtils.Phase phase : this.getPhases()) { ((Phase) phase).renderOn(html); } html ._tbody() ._table() ._div(); }
html.h3(); html.write(description.getName()); html._h3();
private static void writeGraphDescription() throws IOException { html.h3().content("Description of the Chart Information"); html.h4().content("Test Status"); html.ul(); html.li().b().write("Approved")._b().write(" - the working group has approved this test case")._li(); html.li().b().write("Pending approval")._b().write(" (default) - no official recommendation from the working group supporting the specification being tested by this test suite")._li(); html.li().b().write("Extension")._b().write(" - valuable test case but not part of the approved set")._li(); html.li().b().write("Deprecated")._b().write(" - no longer recommended by the working group")._li(); html.li().b().write("Clarification")._b().write(" - requires further clarification from the working group")._li(); html._ul(); html.h4().content("Test Implementation"); html.ul(); html.li().b().write("Automated")._b().write(" - implementation complete")._li(); html.li().b().write("Not Implemented")._b().write(" (default) - possible to implement, just not done")._li(); html.li().b().write("Client Only")._b().write(" - test is only client-side, this test suite doesn't test it")._li(); html.li().b().write("Manual")._b().write(" - server test but not automated")._li(); html._ul(); }