cyberfreedom/layouts/shortcodes/bill-information.html

15 lines
No EOL
543 B
HTML

{{ $i := .Get 0}}
{{ $info := data.GetJSON $i }}
{{ $bill := index $info 0}}
{{if $bill.NumberCode }}
<h2>{{$bill.NumberCode}}: {{$bill.ShortTitleEn}}</h2>
<div style="border: 1px solid var(--theme-accent);margin:1rem;padding:0.5rem;">
<p>
<strong>Status:</strong> {{$bill.StatusNameEn}} <br>as of {{$bill.LatestCompletedBillStageDateTime | time.Format "Jan 02 2006"}}
</p>
<p><i>Data provided by: </i><a href="https://www.parl.ca/legisinfo/en/overview">LEGIS<i>info</i></a></p>
</div>
{{else}}
Error fetching data
{{end}}