[tabs] use datadir_url to build image url instead of hardcoding data/
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 16 Feb 2011 09:02:00 +0100
changeset 6997 88b4fdce7c91
parent 6995 6efb5a5696bd
child 6999 e73e05ea8705
[tabs] use datadir_url to build image url instead of hardcoding data/
web/views/tabs.py
--- a/web/views/tabs.py	Wed Feb 16 08:40:25 2011 +0100
+++ b/web/views/tabs.py	Wed Feb 16 09:02:00 2011 +0100
@@ -58,8 +58,8 @@
         w(u'<div id="lazy-%s" cubicweb:loadurl="%s">' % (
             tabid, xml_escape(self._cw.build_url('json', **urlparams))))
         if show_spinbox:
-            w(u'<img src="data/loading.gif" id="%s-hole" alt="%s"/>'
-              % (tabid, self._cw._('(loading ...)')))
+            w(u'<img src="%sloading.gif" id="%s-hole" alt="%s"/>'
+              % (self._cw.datadir_url, tabid, self._cw._('(loading ...)')))
         else:
             w(u'<div id="%s-hole"></div>' % tabid)
         w(u'<noscript><p><a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'