Introduce "governance" section partials.

Fixes #34.
This commit is contained in:
hacksalot 2016-01-22 23:58:59 -05:00
parent b009861168
commit bb7f328b05
4 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,75 @@
<wx:sub-section>
{{#> header-governance }}
{{> header-simple _title="GOVERNANCE" _section="governance" }}
{{/header-governance}}
{{#each r.governance}}
<wx:sub-section>
<w:p wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA" wsp:rsidRDefault="00606071" wsp:rsidP="00E578D4">
<w:pPr>
<w:pStyle w:val="Heading2"/>
<w:tabs>
<w:tab w:val="right" w:pos="9360"/>
</w:tabs>
</w:pPr>
{{#if role}}
<w:r wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA">
<w:t>{{ role }}, </w:t>
</w:r>
{{/if}}
{{#if url}}<w:hlink w:dest="{{{ url }}}">{{/if}}
<w:r wsp:rsidR="009452CA" wsp:rsidRPr="00606071">
{{#if url}}
<w:rPr>
<w:rStyle w:val="Hyperlink"/>
</w:rPr>
{{/if}}
<w:t>{{ organization }}</w:t>
</w:r>
{{#if url}}</w:hlink>{{/if}}
<w:r wsp:rsidR="00EA0B64">
<w:tab/>
</w:r>
<w:r wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA">
<w:t>{{dateRange .}}</w:t>
</w:r>
</w:p>
{{#if summary }}
<w:p wsp:rsidR="00C146CA" wsp:rsidRPr="000A3AF0" wsp:rsidRDefault="00C146CA" wsp:rsidP="00C146CA">
<w:pPr>
<w:rPr>
<w:sz-cs w:val="20"/>
</w:rPr>
</w:pPr>
{{{wpml summary true}}}
</w:p>
{{/if}}
{{#each highlights }}
<w:p wsp:rsidR="00C146CA" wsp:rsidRDefault="009452CA" wsp:rsidP="00C146CA">
<w:pPr>
<w:pStyle w:val="ListParagraph"/>
<w:listPr>
<w:ilvl w:val="0"/>
<w:ilfo w:val="1"/>
<wx:t wx:val="•"/>
<wx:font wx:val="Calibri"/>
</w:listPr>
<w:rPr>
<w:sz-cs w:val="20"/>
</w:rPr>
</w:pPr>
{{{wpml this true}}}
</w:p>
{{/each}}
</wx:sub-section>
{{/each}}
</wx:sub-section>

View File

@ -0,0 +1,26 @@
{{#section "governance"}}
<hr>
<section id="governance">
{{#> header-governance }}
{{> header-icon _title="GOVERNANCE" _section="governance" _hdricon=(lookup . '_icon') }}
{{/header-governance}}
{{#each r.governance}}
{{#> body-governance }}
<div>
<h3>{{#if position}}<em>{{ position }}</em>,
{{/if}}{{#if url }}
<a href="{{{ url }}}">{{ organization }}</a>
{{else}}
{{ organization }}
{{/if}}
</h3>
<span class="tenure">{{dateRange .}}</span>
<p>{{{ summary }}}</p>
{{> highlights }}
{{#if keywords}}<span class="keywords">{{#each keywords}}{{{ . }}} {{/each}}</span>{{/if}}
</div>
{{/body-governance}}
{{/each}}
</section>
{{/section}}

View File

@ -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}}

View File

@ -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}}