<br /><br />
<div class="media">
<div class="script">
- <iframe id="box-iframe" style="position:fixed; top:14%; left:0px; bottom:0px; right:0px; width:100%; height:85%; border:none; margin:0; padding:0; z-index:0;" src="{% if user.quotas.all or user.is_superuser %}http://teleforma.parisson.com/webview/teleforma.html?url={{ script.safe_url }}?username=Examinator{% else %}http://teleforma.parisson.com/webviewer/teleforma.html?url={{ script.safe_url }}?username={{ user.username }}{% endif %}">
+ <iframe id="box-iframe" style="position:fixed; top:14%; left:0px; bottom:0px; right:0px; width:100%; height:85%; border:none; margin:0; padding:0; z-index:0;" src="{% if user.quotas.all or user.is_superuser %}{{ script_service_url }}?url={{ script.safe_url }}?username=Examinator{% else %}{{ script_service_url }}?url={{ script.safe_url }}?username={{ user.username }}{% endif %}">
</iframe>
</div>
</div>
context = super(ScriptMixinView, self).get_context_data(**kwargs)
self.period = Period.objects.get(id=self.kwargs['period_id'])
context['period'] = self.period
+ context['script_service_url'] = getattr(settings, 'TELEFORMA_EXAM_SCRIPT_SERVICE_URL'
if getattr(settings, 'TELEFORMA_EXAM_SCRIPT_UPLOAD', True) and self.period.date_exam_end:
context['upload'] = datetime.datetime.now() <= self.period.date_exam_end
else: