Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#869] Use surveyYear in template
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Jan 5, 2017
1 parent 6c4dfef commit 6cf9267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions census/views/includes/dataviews/table_places.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@

{% if is_index != "true" -%}
{% if entry -%}
{% if entry.year == currentYear -%}
{% if entry.year == surveyYear -%}
{% set badgeClass = 'label-success' %}
{% elif entry.year == (currentYear - 1) %}
{% elif entry.year == (surveyYear - 1) %}
{% set badgeClass = 'label-warning' %}
{% else %}
{% set badgeClass = 'label-important'%}
Expand Down

0 comments on commit 6cf9267

Please sign in to comment.