Skip to content

Commit

Permalink
Fixed links to Django admin icons
Browse files Browse the repository at this point in the history
  • Loading branch information
adamestein committed Jan 8, 2018
1 parent cb9f994 commit f0b77be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ create the green plus sign link just as Django Admin does:

{% load static %}
<a href="/add/{{ model }}/" class="add-another" id="add_id_{{ field }}" onclick="return showAddAnotherPopup(this);">
<img src="{% static 'admin/img/icon_addlink.gif' %}">
<img src="{% static 'admin/img/icon-addlink.svg' %}">
</a>

The _model_ and _field_ values will be filled in automatically as the template is rendered.
Expand Down
2 changes: 1 addition & 1 deletion tekextensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = (0, 0, 5)
VERSION = (0, 0, 6)
__version__ = '.'.join(map(str, VERSION))
2 changes: 1 addition & 1 deletion tekextensions/templates/addnew.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load static %}
<a href="/add/{{ model }}/" class="add-another" id="add_id_{{ field }}" onclick="return showAddAnotherPopup(this);">
<img src="{% static 'admin/img/icon_addlink.gif' %}">
<img src="{% static 'admin/img/icon-addlink.svg' %}">
</a>
2 changes: 1 addition & 1 deletion tekextensions/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def render(self, name, *args, **kwargs):
anchor = """
{% load static %}
<a href="/add/{{ model }}/" class="add-another" id="add_id_{{ field }}" onclick="return showAddAnotherPopup(this);">
<img src="{% static 'admin/img/icon_addlink.gif' %}">
<img src="{% static 'admin/img/icon-addlink.svg' %}">
</a>
"""
popupplus = Template(anchor).render(Context({'field': name, 'model': self.model}))
Expand Down

0 comments on commit f0b77be

Please sign in to comment.