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

Fixing the way backgrounds history records and category are displayed in... #215

Merged
merged 1 commit into from
Feb 13, 2013
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
8 changes: 4 additions & 4 deletions elections/templates/elections/embeded/candidate_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@
<div class="brdotted">
<div class="accordion">
{% if candidate.get_background.items %}
{% for background_category, background_items in candidate.get_background.items %}
<h3>{{ background_category }}: </h3>
{% for category_index, background_category in candidate.get_background.items %}
<h3>{{ background_category.name }}: </h3>

<div class="accordionContent">
{% for background_label, background_value in background_items.items %}
<span class="profile-description">{{ background_label }}: </span>{% if background_value %}{{ background_value }}{% endif %}<br>
{% for background_index, background in background_category.backgrounds.items %}
<span class="profile-description">{{ background.name }}: </span>{% if background.value %}{{ background.value }}{% endif %}<br>
{% endfor %}
</div>
{% endfor %}
Expand Down