--- a/Allura/allura/controllers/oembed.py
+++ b/Allura/allura/controllers/oembed.py
@@ -20,7 +20,7 @@
class OEmbedController(WsgiDispatchController):
'''Controller that serves up oembedded resources'''
- @expose('jinja:oembed/generic.html')
+ @expose('jinja:allura:templates/oembed/generic.html')
def index(self, href, **kw):
try:
response = g.oembed_consumer.embed(href)
@@ -29,18 +29,18 @@
data = response.getData()
log.info('Got response:\n%s', pformat(data))
if isinstance(response, oembed.OEmbedPhotoResponse):
- override_template(self.index, 'jinja:oembed/photo.html')
+ override_template(self.index, 'jinja:allura:templates/oembed/photo.html')
elif isinstance(response, oembed.OEmbedVideoResponse):
- override_template(self.index, 'jinja:oembed/html_tpl.html')
+ override_template(self.index, 'jinja:allura:templates/oembed/html_tpl.html')
elif isinstance(response, oembed.OEmbedRichResponse):
- override_template(self.index, 'jinja:oembed/html_tpl.html')
+ override_template(self.index, 'jinja:allura:templates/oembed/html_tpl.html')
elif isinstance(response, oembed.OEmbedLinkResponse):
if data['provider_name'] == 'Twitter Status':
- override_template(self.index, 'jinja:oembed/link_twitter.html')
+ override_template(self.index, 'jinja:allura:templates/oembed/link_twitter.html')
elif data['provider_name'] == 'My Opera Community':
- override_template(self.index, 'jinja:oembed/link_opera.html')
+ override_template(self.index, 'jinja:allura:templates/oembed/link_opera.html')
else: # pragma no cover
- override_template(self.index, 'jinja:oembed/link.html')
+ override_template(self.index, 'jinja:allura:templates/oembed/link.html')
else:
pass
return dict(href=href, data=data)