Skip to content

Commit

Permalink
Added iframe to embed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Oct 3, 2016
1 parent 6370679 commit 64f3842
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RIGS/rigboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ class EventOembed(generic.View):
def get(self, request, pk=None):

object = get_object_or_404(self.model, pk=pk)

base_url = "https://rigs.nottinghamtec.co.uk"
full_url = base_url+str(object.get_absolute_url())

data = {
'html': 'this is some html',
'html': '<iframe src="{0}" frameborder="0" width="100%" height="300"></iframe>'.format(full_url),
'version': '1.0',
'type': 'rich',
}
Expand Down

0 comments on commit 64f3842

Please sign in to comment.