mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-08 07:59:42 +00:00
Added iframe to embed
This commit is contained in:
@@ -53,8 +53,12 @@ class EventOembed(generic.View):
|
|||||||
def get(self, request, pk=None):
|
def get(self, request, pk=None):
|
||||||
|
|
||||||
object = get_object_or_404(self.model, pk=pk)
|
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 = {
|
data = {
|
||||||
'html': 'this is some html',
|
'html': '<iframe src="{0}" frameborder="0" width="100%" height="300"></iframe>'.format(full_url),
|
||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'type': 'rich',
|
'type': 'rich',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user