--- a/src/hdalab/views/profile.py Thu Mar 31 14:13:00 2016 +0200
+++ b/src/hdalab/views/profile.py Tue Apr 05 18:34:37 2016 +0200
@@ -212,13 +212,8 @@
form = AuthenticationForm(self.request)
context["form"] = form
- if hasattr(settings, 'RENKAN_TUTORIAL_MP4'):
- context['video_mp4'] = settings.RENKAN_TUTORIAL_MP4
- if hasattr(settings, 'RENKAN_TUTORIAL_WEBM'):
- context['video_webm'] = settings.RENKAN_TUTORIAL_WEBM
- if hasattr(settings, 'RENKAN_TUTORIAL_OGG'):
- context['video_ogg'] = settings.RENKAN_TUTORIAL_OGG
-
+ context['tutorial_video_urls'] = getattr(settings, 'RENKAN_TUTORIAL_VIDEO_URLS', [])
+
return context