Skip to content

Commit 60b3ae3

Browse files
committed
Fixes admin icon references using cms_admin_icon_base templatetag.
Supersedes django-cms#1346
1 parent 15af8af commit 60b3ae3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cms/forms/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from django.utils.safestring import mark_safe
1313
from django.utils.translation import ugettext as _
1414
import copy
15-
from cms.templatetags.cms_admin import admin_static_url
15+
from cms.templatetags.cms_admin import CMS_ADMIN_ICON_BASE
1616

1717
class PageSelectWidget(MultiWidget):
1818
"""A widget that allows selecting a page by first selecting a site and then
@@ -171,7 +171,7 @@ def render(self, name, value, attrs=None, choices=()):
171171
add_url = '../../../cms/pageuser/add/'
172172
output.append(u'<a href="%s" class="add-another" id="add_id_%s" onclick="return showAddAnotherPopup(this);"> ' % \
173173
(add_url, name))
174-
output.append(u'<img src="%simg/admin/icon_addlink.gif" width="10" height="10" alt="%s"/></a>' % (admin_static_url(), _('Add Another')))
174+
output.append(u'<img src="%sicon_addlink.gif" width="10" height="10" alt="%s"/></a>' % (CMS_ADMIN_ICON_BASE, _('Add Another')))
175175
return mark_safe(u''.join(output))
176176

177177

cms/templates/admin/cms/page/change_form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
margin-bottom:-1px;
3838
border-color:#ddd #aaa #ccc #ddd !important;
3939
border:1px;
40-
background:#fff url('{% admin_static_url %}img/admin/nav-bg.gif') repeat-x center bottom !important;
40+
background:#fff url('{% cms_admin_icon_base %}nav-bg.gif') repeat-x center bottom !important;
4141
}
4242

4343
#lang_tab_content h2.header {
@@ -46,7 +46,7 @@
4646
font-size:11px;
4747
text-align:left;
4848
font-weight:bold;
49-
background:#7ca0c7 url('{% admin_static_url %}img/admin/default-bg.gif') repeat-x left top;
49+
background:#7ca0c7 url('{% cms_admin_icon_base %}default-bg.gif') repeat-x left top;
5050
color:#fff;
5151
}
5252

0 commit comments

Comments
 (0)