Skip to content

Commit

Permalink
bug 637855, don't call me url
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Mar 2, 2011
1 parent 2fee3ef commit dc5d9cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/addons/helpers.py
Expand Up @@ -147,7 +147,7 @@ def persona_preview(context, persona, size='large', linked=True, extra=None,
c.update({'persona': persona, 'addon': addon, 'linked': linked,
'size': size, 'preview': preview_map[size], 'extra': extra,
'details': details, 'title': title, 'caption': caption,
'url': url})
'url_': url})
return c


Expand Down
4 changes: 2 additions & 2 deletions apps/addons/templates/addons/persona_preview.html
Expand Up @@ -2,8 +2,8 @@
<div class="persona-inner">
<div class="persona-preview">
{% set tag = 'a' if linked else 'div' %}
{% with url = url or addon.get_url_path() %}
<{{ tag }} {% if linked %}href="{{ url }}" target="_self"{% endif %}
{% with url_ = url or addon.get_url_path() %}
<{{ tag }} {% if linked %}href="{{ addon_url }}" target="_self"{% endif %}
{% endwith %}
title="{{ addon.name }}" style="background-image:url('{{ preview }}')"
data-browsertheme="{{ persona.json_data }}">
Expand Down

0 comments on commit dc5d9cd

Please sign in to comment.