Awesome: Improve date handling.

This commit is contained in:
hacksalot 2016-02-13 22:48:52 -05:00
parent 3d2b6318ed
commit a9f002e89a
14 changed files with 32 additions and 32 deletions

View File

@ -12,10 +12,10 @@
[~ _.each( r.governance, function(gov) { ~]
%---------------------------------------------------------
\cvhonor
{[[ gov.position ]]} % Position
{[[ gov.role ]]} % Position
{[[ gov.organization ]]} % Committee
{[[ gov.location ]]} % Location
{[[ h.dateRange( gov ) ]]} % Date(s)
{[[ h.date(gov.start) ]]} % Date(s)
[~ }); ~]
%---------------------------------------------------------

View File

@ -15,10 +15,10 @@
{[[ edu.title ]]} % Degree
{[[ edu.institution ]]} % Institution
{[[ edu.location ]]} % Location
{[~ print( h.dateRange( edu ) ) ~]} % Date(s)
{[[ h.dateRange( edu ) ]]} % Date(s)
{[~ if( edu.highlights && edu.highlights.length ) { ~]
\begin{cvitems} % Description(s) bullet points
[~ print( h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -15,10 +15,10 @@
{[[ job.position ]]} % Job title
{[[ job.employer ]]} % Organization
{[[ job.location ]]} % Location
{[~ print( h.dateRange( job ) ) ~]} % Date(s)
{[[ h.dateRange( job ) ]]} % Date(s)
{[~ if (job.highlights && job.highlights.length ) { ~]
\begin{cvitems} % Description(s) of tasks/responsibilities
[~ print( h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -12,13 +12,13 @@
[~ _.each( r.extracurricular, function(cur) { ~]
%---------------------------------------------------------
\cventry
{[[ cur.role ]]} % Affiliation/role
{[[ cur.organization ]]} % Organization/group
{[[ cur.title ]]} % Affiliation/role
{[[ cur.activity ]]} % Organization/group
{[[ cur.location ]]} % Location
{[[ h.dateRange(cur) ]]} % Date(s)
{[~ if (cur.highlights && cur.highlights.length ) { ~]
\begin{cvitems} % Description(s) of experience/contributions/knowledge
[~ print( h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -21,7 +21,7 @@
{[[ rgn.title ]]} % Award
{[[ rgn.from ]]} % Event
{[[ rgn.location ]]} % Location
{[[ rgn.date ]]} % Date(s)
{[[ h.date(rgn.date) ]]} % Date(s)
[~ }); ~]
%---------------------------------------------------------
@ -44,7 +44,7 @@
{[[ rgn.title ]]} % Award
{[[ rgn.from ]]} % Event
{[[ rgn.location ]]} % Location
{[[ rgn.date ]]} % Date(s)
{[[ h.date(rgn.date) ]]} % Date(s)
[~ }); ~]
%---------------------------------------------------------

View File

@ -15,10 +15,10 @@
{[[ spk.title ]]} % Role
{[[ spk.event ]])} % Event
{[[ spk.location ]]} % Location
{[[ spk.date ]]} % Date(s)
{[[ h.date(spk.date) ]]} % Date(s)
{[~ if (r.speaking && r.speaking.length) { ~]
\begin{cvitems} % Description(s)
[~ print( h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -12,10 +12,10 @@
[~ _.each( r.writing, function(wri) { ~]
%---------------------------------------------------------
\cventry
{[[ wri.title ]]} % Role
{[[ wri.publisher ]]} % Title
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
{[[ wri.title ]]} % Title
{[[ wri.url ]]} % Location
{[[ wri.date ]]} % Date(s)
{[[ h.date(wri.date) ]]} % Date(s)
{[~ if (wri.highlights && wri.highlights.length) { ~]
\begin{cvitems} % Description(s)
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]

View File

@ -12,10 +12,10 @@
[~ _.each( r.governance, function(gov) { ~]
%---------------------------------------------------------
\cvhonor
{[[ gov.position ]]} % Position
{[[ gov.role ]]} % Position
{[[ gov.organization ]]} % Committee
{[[ gov.location ]]} % Location
{[[ h.dateRange( gov ) ]]} % Date(s)
{[[ h.date(gov.start) ]]} % Date(s)
[~ }); ~]
%---------------------------------------------------------

View File

@ -15,10 +15,10 @@
{[[ edu.title ]]} % Degree
{[[ edu.institution ]]} % Institution
{[[ edu.location ]]} % Location
{[~ print( h.dateRange( edu ) ) ~]} % Date(s)
{[[ h.dateRange( edu ) ]]} % Date(s)
{[~ if( edu.highlights && edu.highlights.length ) { ~]
\begin{cvitems} % Description(s) bullet points
[~ print( h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -15,10 +15,10 @@
{[[ job.position ]]} % Job title
{[[ job.employer ]]} % Organization
{[[ job.location ]]} % Location
{[~ print( h.dateRange( job ) ) ~]} % Date(s)
{[[ h.dateRange( job ) ]]} % Date(s)
{[~ if (job.highlights && job.highlights.length ) { ~]
\begin{cvitems} % Description(s) of tasks/responsibilities
[~ print( h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -12,13 +12,13 @@
[~ _.each( r.extracurricular, function(cur) { ~]
%---------------------------------------------------------
\cventry
{[[ cur.role ]]} % Affiliation/role
{[[ cur.organization ]]} % Organization/group
{[[ cur.title ]]} % Affiliation/role
{[[ cur.activity ]]} % Organization/group
{[[ cur.location ]]} % Location
{[[ h.dateRange(cur) ]]} % Date(s)
{[~ if (cur.highlights && cur.highlights.length ) { ~]
\begin{cvitems} % Description(s) of experience/contributions/knowledge
[~ print( h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -21,7 +21,7 @@
{[[ rgn.title ]]} % Award
{[[ rgn.from ]]} % Event
{[[ rgn.location ]]} % Location
{[[ rgn.date ]]} % Date(s)
{[[ h.date(rgn.date) ]]} % Date(s)
[~ }); ~]
%---------------------------------------------------------
@ -44,7 +44,7 @@
{[[ rgn.title ]]} % Award
{[[ rgn.from ]]} % Event
{[[ rgn.location ]]} % Location
{[[ rgn.date ]]} % Date(s)
{[[ h.date(rgn.date) ]]} % Date(s)
[~ }); ~]
%---------------------------------------------------------

View File

@ -15,10 +15,10 @@
{[[ spk.title ]]} % Role
{[[ spk.event ]])} % Event
{[[ spk.location ]]} % Location
{[[ spk.date ]]} % Date(s)
{[[ h.date(spk.date) ]]} % Date(s)
{[~ if (r.speaking && r.speaking.length) { ~]
\begin{cvitems} % Description(s)
[~ print( h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]
[[ h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]]
\end{cvitems}
[~ } ~]}

View File

@ -12,10 +12,10 @@
[~ _.each( r.writing, function(wri) { ~]
%---------------------------------------------------------
\cventry
{[[ wri.title ]]} % Role
{[[ wri.publisher ]]} % Title
{[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role
{[[ wri.title ]]} % Title
{[[ wri.url ]]} % Location
{[[ wri.date ]]} % Date(s)
{[[ h.date(wri.date) ]]} % Date(s)
{[~ if (wri.highlights && wri.highlights.length) { ~]
\begin{cvitems} % Description(s)
[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~]