cyberfreedom/layouts/shortcodes/bill-information.html

15 lines
571 B
HTML
Raw Permalink Normal View History

2024-01-29 17:45:43 -05:00
{{ $i := .Get 0}}
{{ $info := data.GetJSON $i }}
{{ $bill := index $info 0}}
{{if $bill.NumberCode }}
<h2 style="text-align: center;">{{$bill.NumberCode}}: {{$bill.ShortTitleEn}}</h2>
2024-01-29 17:45:43 -05:00
<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}}