Skip to content

Commit

Permalink
Issue/105 107 (#114)
Browse files Browse the repository at this point in the history
Resolved #105 and #107 

Co-authored-by: Ari Hershowitz <arihershowitz@gmail.com>
  • Loading branch information
Kapphire and aih committed Dec 24, 2020
1 parent 9ca129d commit 43f253f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server_py/flatgov/bills/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ class Sponsor(models.Model):
thomas_id = models.CharField(max_length=50, blank=True, null=True)

def __str__(self):
return self.name
return self.name
2 changes: 1 addition & 1 deletion server_py/flatgov/static/js/bill.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ $(document).ready( function () {
});
$('#similar-bills-table').DataTable({
sDom: "Rlfrtip",
order: [[ 3, 'desc' ]],
bFilter: true,
iDisplayLength: 100,
scrollY: '50vh',
Expand All @@ -49,6 +50,5 @@ $(document).ready( function () {
lengthMenu: "_MENU_ bills",
},
lengthMenu: [100, 50, 20, 5],
order: [[ 2, 'desc' ]]
});
} );
6 changes: 5 additions & 1 deletion server_py/flatgov/templates/bills/compare.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ <h4>Sections Matched</h4>
Discover sections matched between {{ bill.bill_congress_type_number }} and {{ second_bill.bill_congress_type_number }}
</span>
<div class="tab-content light-gray-tabs p-4">
<p><span><strong>Top 10 matched sections:</strong></span></p>
{% if bill_to_bill|length == 10 %}
<p><span><strong>Top 10 matched sections :</strong></span></p>
{% else %}
<p><span><strong>Sections matched ({{ bill_to_bill|length }}) :</strong></span></p>
{% endif %}
<div class="tab-pane fade show active" id="current" role="tabpanel" aria-labelledby="current-tab">
<table class="table mt-3">
<thead>
Expand Down

0 comments on commit 43f253f

Please sign in to comment.