Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

re-fixed the last fix.

  • Loading branch information...
commit cb83f0216b25c201aba68365d00a2c1d9dc8ee60 1 parent d2b8b93
@rbrady authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 bootstrapped/templatetags/bootstrap.py
View
20 bootstrapped/templatetags/bootstrap.py
@@ -3,7 +3,7 @@
register = template.Library()
-SCRIPT_TAG = '<script src="%sjs/bootstrap-%s.js" type="text/javascript"></script>' % settings.STATIC_URL
+SCRIPT_TAG = '<script src="%sjs/bootstrap-%s.js" type="text/javascript"></script>'
class BootstrapJSNode(template.Node):
@@ -12,14 +12,14 @@ def __init__(self, args):
def render_all_scripts(self):
results = [
- SCRIPT_TAG % 'alerts',
- SCRIPT_TAG % 'buttons',
- SCRIPT_TAG % 'dropdown',
- SCRIPT_TAG % 'modal',
- SCRIPT_TAG % 'popover',
- SCRIPT_TAG % 'scrollspy',
- SCRIPT_TAG % 'tabs',
- SCRIPT_TAG % 'twipsy',
+ SCRIPT_TAG % (settings.STATIC_URL, 'alerts'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'buttons'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'dropdown'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'modal'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'popover'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'scrollspy'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'tabs'),
+ SCRIPT_TAG % (settings.STATIC_URL, 'twipsy'),
]
return '\n'.join(results)
@@ -30,7 +30,7 @@ def render(self, context):
# popover requires twipsy
if 'popover' in self.args:
self.args.add('twipsy')
- tags = [SCRIPT_TAG % tag for tag in self.args]
+ tags = [SCRIPT_TAG % (settings.STATIC_URL,tag) for tag in self.args]
return '\n'.join(tags)
@register.simple_tag
Please sign in to comment.
Something went wrong with that request. Please try again.