Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Commit

Permalink
Turns out districts aren't unique across state.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarp committed Jun 8, 2015
1 parent 0523388 commit 606abe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/candidates-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ <h5 class="entity__term__label"><a class="term" data-term="Status">Status</a></h
<li class="entity__term">
<h5 class="entity__term__label">District</h5>
<span class="entity__term__data">
<a href="{{ url_for('candidates', state=state, cycle=max(cycles)) }}">{{ state }}</a>
{% if district %}
<span>-</span>
<a href="{{ url_for('candidates', district=district, cycle=max(cycles)) }}">{{district}}</a>
<a href="{{ url_for('candidates', state=state, district=district, cycle=max(cycles)) }}">{{ state }} - {{ district }}</a>
{% else %}
<a href="{{ url_for('candidates', state=state, cycle=max(cycles)) }}">{{ state }}</a>
{% endif %}
</span>
</li>
Expand Down

0 comments on commit 606abe2

Please sign in to comment.