src/hdalab/views/profile.py
changeset 675 d68e7b3a2e4f
parent 649 434737bd64e5
child 676 111906d4c8b0
--- a/src/hdalab/views/profile.py	Mon Apr 04 17:04:14 2016 +0200
+++ b/src/hdalab/views/profile.py	Thu Mar 31 14:13:00 2016 +0200
@@ -212,6 +212,13 @@
         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
+        
         return context