[gen] Optimized PXs, that are almost ready. This is the last gen version where PTs are still working.
This commit is contained in:
parent
efd918f175
commit
d385b8514e
14 changed files with 207 additions and 210 deletions
|
@ -112,7 +112,7 @@ class ToolMixin(BaseMixin):
|
|||
the background image of some XHTML tag.'''
|
||||
# If no extension is found in p_name, we suppose it is a png image.
|
||||
if '.' not in name: name += '.png'
|
||||
url = '%s/ui/%s' % (self.getPhysicalRoot(),absolute_url(), name)
|
||||
url = '%s/ui/%s' % (self.getPhysicalRoot().absolute_url(), name)
|
||||
if not bg: return url
|
||||
return 'background-image: url(%s)' % url
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue