Mercurial > public > sg101
changeset 1025:23e477c509dd
Fix bug in edit elsewhere template.
Introduced during changeover to ManifestStaticFilesStorage.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 10 Dec 2015 21:55:19 -0600 |
parents | 6164cc091649 |
children | 631a757bc169 |
files | sg101/templates/bio/edit_elsewhere.html |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sg101/templates/bio/edit_elsewhere.html Thu Dec 10 21:11:10 2015 -0600 +++ b/sg101/templates/bio/edit_elsewhere.html Thu Dec 10 21:55:19 2015 -0600 @@ -8,7 +8,9 @@ <ul> {% for profile in request.user.social_network_profiles.all %} <li> - <img src="{% static "elsewhere/{{ profile.icon_name }}" %}" alt="{{ profile.name }}" /> + {% with "elsewhere/"|add:profile.icon_name as img_src %} + <img src="{% static img_src %}" alt="{{ profile.name }}" /> + {% endwith %} <a href="{{ profile.url }}" rel="me">{{ profile.name }}</a> <form id="delete-network-{{ profile.id }}" method="post" action=".">{% csrf_token %} <input type="hidden" name="delete_id" value="{{ profile.id }}" /> @@ -44,7 +46,9 @@ <ul> {% for profile in request.user.instant_messenger_profiles.all %} <li> - <img src="{% static "elsewhere/{{ profile.icon_name }}" %}" alt="{{ profile.name }}" /> + {% with "elsewhere/"|add:profile.icon_name as img_src %} + <img src="{% static img_src %}" alt="{{ profile.name }}" /> + {% endwith %} {{ profile.name }}: <a href="{{ profile.url }}">{{ profile.username }}</a> <form id="delete-messenger-{{ profile.id }}" method="post" action=".">{% csrf_token %} <input type="hidden" name="delete_id" value="{{ profile.id }}" />