use partials for data rows in organisation timelines
This commit is contained in:
parent
88b685cf2e
commit
1da4c591d2
7 changed files with 233 additions and 58 deletions
17
layouts/partials/cv/organisation/get_role_start_date.html
Normal file
17
layouts/partials/cv/organisation/get_role_start_date.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!--
|
||||
Renders a role's start date.
|
||||
|
||||
@params . Role start date.
|
||||
@return Date
|
||||
-->
|
||||
|
||||
<!-- Validation -->
|
||||
|
||||
{{- if ( not ( eq (printf "%T" . ) "time.Time" ) ) -}}
|
||||
{{- errorf "Start date is not a `time.Time`, it's a %T" . -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
<!-- Rendering -->
|
||||
|
||||
{{- return ( printf "new Date('%s')" ( .Format "2006-01-02" ) ) -}}
|
Loading…
Add table
Add a link
Reference in a new issue