Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bill files #589

Merged
merged 3 commits into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions pmg/templates/bills/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,24 @@ <h1>
</ul>
{% endif %}

{% if bill.bill_files %}
<ul class="list-inline bill-versions">
<li><h3>Supporting Documents:</h3></li>
{% for file in bill.bill_files %}
<li>
<a href="{{ file.file.url }}" target="_blank">
<span class="label label-info" title="{{ file.file.title }}">
<i class="fa fa-file-text"></i> {{ file.file.title }}
</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}


{% if bill.status %}
{% if bill.status.name in ["enacted", "president", "ncop", "na", "returned-to-na", "introduced"] -%}
{% if bill.status.name in ["enacted", "president", "ncop", "na", "returned-to-na", "introduced", "concourt"] -%}
<div class="bill-status-container">
<div class="c4sa-grey c4sa-progress"></div>

Expand Down Expand Up @@ -170,20 +185,7 @@ <h4>{{ version.title }}</h4>
</div>
{% endif %}

{% if bill.bill_files %}
<ul class="list-inline bill-versions">
<li><h3>Bill files:</h3></li>
{% for file in bill.bill_files %}
<li>
<a href="{{ file.file.url }}" target="_blank">
<span class="label label-info" title="{{ file.file.title }}">
<i class="fa fa-file-text"></i> {{ file.file.title }}
</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}


{% endblock %}

Expand Down