cyberfreedom/layouts/shortcodes/bill-information.html
Gabriel 6dc9b74062 large overhaul
1) Git history
2) Remote data feed working!
3) issues taxonomy setup
2024-02-04 01:21:11 -05:00

15 lines
No EOL
571 B
HTML

{{ $i := .Get 0}}
{{ $info := data.GetJSON $i }}
{{ $bill := index $info 0}}
{{if $bill.NumberCode }}
<h2 style="text-align: center;">{{$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}}