Mercurial > public > sg101
changeset 1020:a052798c146c
Unbreak the flag icon template tag.
This got broken when I did the ManifestStaticFilesStorage changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 08 Dec 2015 17:32:31 -0600 |
parents | d00747d2f43e |
children | 68c3343f3318 |
files | bio/templatetags/bio_tags.py sg101/templates/bio/flag_icon.html |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bio/templatetags/bio_tags.py Mon Dec 07 18:19:37 2015 -0600 +++ b/bio/templatetags/bio_tags.py Tue Dec 08 17:32:31 2015 -0600 @@ -99,6 +99,7 @@ return { 'src': src, 'name': name, + 'size': size, }
--- a/sg101/templates/bio/flag_icon.html Mon Dec 07 18:19:37 2015 -0600 +++ b/sg101/templates/bio/flag_icon.html Tue Dec 08 17:32:31 2015 -0600 @@ -1,6 +1,10 @@ {% load static from staticfiles %} {% if src %} + {% if size == 'large' %} <div class="flag"> <img src="{% static src %}" alt="{{ name }}" title="{{ name }}" /> {{ name }} </div> + {% else %} + <img src="{% static src %}" alt="{{ name }}" title="{{ name }}" /> + {% endif %} {% endif %}