web/views/tabs.py
changeset 5385 b6e250dd7a7d
parent 5370 dc6f3247bfc2
child 5421 8167de96c523
equal deleted inserted replaced
5382:cb5dfea92285 5385:b6e250dd7a7d
    45         w(u'<div id="lazy-%s" cubicweb:loadurl="%s">' % (
    45         w(u'<div id="lazy-%s" cubicweb:loadurl="%s">' % (
    46             tabid or vid, xml_escape(self._cw.build_url('json', **urlparams))))
    46             tabid or vid, xml_escape(self._cw.build_url('json', **urlparams))))
    47         if show_spinbox:
    47         if show_spinbox:
    48             w(u'<img src="data/loading.gif" id="%s-hole" alt="%s"/>'
    48             w(u'<img src="data/loading.gif" id="%s-hole" alt="%s"/>'
    49               % (tabid or vid, self._cw._('(loading ...)')))
    49               % (tabid or vid, self._cw._('(loading ...)')))
       
    50         else:
       
    51             w(u'<div id="%s-hole"></div>' % (tabid or vid))
    50         w(u'<noscript><p><a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'
    52         w(u'<noscript><p><a class="style: hidden" id="seo-%s" href="%s">%s</a></p></noscript>'
    51           % (tabid or vid, xml_escape(self._cw.build_url(**urlparams)), xml_escape('%s (%s)') %
    53           % (tabid or vid, xml_escape(self._cw.build_url(**urlparams)), xml_escape('%s (%s)') %
    52              (tabid or vid, self._cw._('follow this link if javascript is deactivated'))))
    54              (tabid or vid, self._cw._('follow this link if javascript is deactivated'))))
    53         w(u'</div>')
    55         w(u'</div>')
    54         self._prepare_bindings(tabid or vid, reloadable)
    56         self._prepare_bindings(tabid or vid, reloadable)