From bb7f328b05e63c569953633136a5ccab2df88590 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 22 Jan 2016 23:58:59 -0500 Subject: [PATCH] Introduce "governance" section partials. Fixes #34. --- partials/doc/section/governance.hbs | 75 ++++++++++++++++++++++++++++ partials/html/section/governance.hbs | 26 ++++++++++ partials/md/section/governance.hbs | 21 ++++++++ partials/txt/section/governance.hbs | 17 +++++++ 4 files changed, 139 insertions(+) create mode 100644 partials/doc/section/governance.hbs create mode 100644 partials/html/section/governance.hbs create mode 100644 partials/md/section/governance.hbs create mode 100644 partials/txt/section/governance.hbs diff --git a/partials/doc/section/governance.hbs b/partials/doc/section/governance.hbs new file mode 100644 index 0000000..26014c0 --- /dev/null +++ b/partials/doc/section/governance.hbs @@ -0,0 +1,75 @@ + + + {{#> header-governance }} + {{> header-simple _title="GOVERNANCE" _section="governance" }} + {{/header-governance}} + + {{#each r.governance}} + + + + + + + + + + + {{#if role}} + + {{ role }}, + + {{/if}} + + {{#if url}}{{/if}} + + {{#if url}} + + + + {{/if}} + {{ organization }} + + {{#if url}}{{/if}} + + + + + {{dateRange .}} + + + + {{#if summary }} + + + + + + + {{{wpml summary true}}} + + {{/if}} + + {{#each highlights }} + + + + + + + + + + + + + + {{{wpml this true}}} + + {{/each}} + + + + {{/each}} + + diff --git a/partials/html/section/governance.hbs b/partials/html/section/governance.hbs new file mode 100644 index 0000000..d319733 --- /dev/null +++ b/partials/html/section/governance.hbs @@ -0,0 +1,26 @@ +{{#section "governance"}} +
+
+ {{#> header-governance }} + {{> header-icon _title="GOVERNANCE" _section="governance" _hdricon=(lookup . '_icon') }} + {{/header-governance}} + + {{#each r.governance}} + {{#> body-governance }} +
+

{{#if position}}{{ position }}, + {{/if}}{{#if url }} + {{ organization }} + {{else}} + {{ organization }} + {{/if}} +

+ {{dateRange .}} +

{{{ summary }}}

+ {{> highlights }} + {{#if keywords}}{{#each keywords}}{{{ . }}} {{/each}}{{/if}} +
+ {{/body-governance}} + {{/each}} +
+{{/section}} diff --git a/partials/md/section/governance.hbs b/partials/md/section/governance.hbs new file mode 100644 index 0000000..ae14695 --- /dev/null +++ b/partials/md/section/governance.hbs @@ -0,0 +1,21 @@ +{{#section "governance" }} +## {{{sectionTitle "GOVERNANCE"}}} + +{{#each r.governance }} +{{#if url}} +### {{#if role}}*{{{ role }}}*, {{/if}}[{{{ organization }}}]({{{ url }}}) {{#has 'start'}} ({{dateRange .}}){{/has}} +{{else}} +### {{#if role}}*{{{ role }}}*, {{/if}}{{{ organization }}}{{#has 'start'}} ({{dateRange .}}){{/has}} +{{/if}} +{{~#if summary}} + +{{{ summary }}}{{/if}} + +{{~#if highlights}} + +{{#each highlights}} +- {{{ this }}} +{{/each}}{{/if}} + +{{/each}} +{{/section}} diff --git a/partials/txt/section/governance.hbs b/partials/txt/section/governance.hbs new file mode 100644 index 0000000..dbd740c --- /dev/null +++ b/partials/txt/section/governance.hbs @@ -0,0 +1,17 @@ +{{#section "governance" }} +{{{sectionTitle "GOVERNANCE"}}} --------------------------------------------------------------------- + +{{#each r.governance }} +{{#if role}}{{{ role }}}, {{/if}}{{{ organization }}}{{#has 'start'}} ({{dateRange .}}){{/has}} +{{~#if summary}} + +{{{ summary }}}{{/if}} + +{{~#if highlights}} + +{{#each highlights}} +- {{{ this }}} +{{/each}}{{/if}} + +{{/each}} +{{/section}}