Fixed iframe url

This commit is contained in:
Fergal Moran
2013-07-25 16:46:00 +01:00
parent 795b7ebbe6
commit 2d8368b408
3 changed files with 2 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ def mix(request, **args):
"title": mix.title,
"image_url": image,
"audio_url": audio_url,
"mix_url": 'http://%smix/%s' % (Site.objects.get_current().domain, mix_url)
"mix_url": 'http://%s%s' % (Site.objects.get_current().domain, mix_url)
}
response = render_to_response(
'inc/embed/mix.html',

View File

@@ -26,7 +26,7 @@ def get_template_ex(request, template_name):
@not_minified_response
def get_embed_codes_dialog(request, slug):
payload = {
'embed_code': 'http://%s/embed/%s' % (Site.objects.get_current().domain, slug)
'embed_code': 'http://%s/mix/embed/%s' % (Site.objects.get_current().domain, slug)
}
return render_to_response(
'views/dlg/EmbedCodes.html',

View File

@@ -1,6 +1,5 @@
<html>
<head>
<script src="{{ STATIC_URL }}js/libs/jquery.js"></script>
<script src="{{ STATIC_URL }}js/libs/mediaelement/mediaelement-and-player.js"></script>
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.css"/>