Skip to content

Commit

Permalink
Merge pull request #400 from datamade/description_to_title
Browse files Browse the repository at this point in the history
change bill listing description and description to title
  • Loading branch information
fgregg authored Jan 16, 2024
2 parents 7982316 + 496097d commit efb5e65
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions chicago/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ def inferred_status(self):
else:
return "Active"

@property
def listing_description(self):
return self.title

@property
def topics(self):
tags = topic_classifier(self.title)
Expand Down
2 changes: 1 addition & 1 deletion chicago/templates/divided_votes.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Divided Votes - {{ legislative_session.name }}</h1>
<tr>
<td>
<p class='h4'><a href="{% url 'bill_detail' legislation.slug %}">{{ legislation.friendly_name }}</a> {{ legislation.inferred_status | inferred_status_label | safe }}</p>
{{ legislation.listing_description | short_blurb }}
{{ legislation.title | short_blurb }}

{% if legislation.topics %}
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</style>

<body>
{{ obj.description }}
{{ obj.title }}
<p>

Sponsors:
Expand Down
2 changes: 1 addition & 1 deletion chicago/templates/legislation.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ <h3>Legislation not found</h3>
"name": "{{ legislation.friendly_name }}",
"alternateName": ["{{ legislation.identifier }}", "{{ legislation.identifier.split|join:'' }}"],
{% if legislation.actions %}"datePublished": "{{legislation.actions.0.date|date:'Y-m-d'}}", {% endif %}
"description": "{{ legislation.description }}",
"description": "{{ legislation.title }}",
"text": "{% firstof legislation.full_text legislation.ocr_full_text %}"
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion chicago/templates/partials/legislation_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="row">
<div class="col-xs-10">
<p>
{{ legislation.listing_description | short_blurb }}
{{ legislation.title | short_blurb }}
</p>
</div>
<div class='col-xs-1'>
Expand Down
4 changes: 2 additions & 2 deletions chicago/templates/partials/search_result.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div class="col-xs-11">
{% if query %}
<p class="search-result">
{% highlight r.object.listing_description with query %}
{% highlight r.object.title with query %}
</p>
{% else %}
<p>
{{ r.object.listing_description | short_blurb }}
{{ r.object.title | short_blurb }}
</p>
{% endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion chicago/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def get_context_data(self, **kwargs):

seo = {}
seo.update(settings.SITE_META)
seo["site_desc"] = bill.listing_description
seo["site_desc"] = bill.title
seo["title"] = "%s - %s" % (bill.friendly_name, settings.SITE_META["site_name"])
context["seo"] = seo

Expand Down

0 comments on commit efb5e65

Please sign in to comment.