Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[fix bug 789555] Temp page for Mozcamp Warsaw

add keynote template

Conflicts:

	apps/phonebook/urls.py
  • Loading branch information...
commit 19a7875b9067464b2eda3bb3fc7d1bee9731eda7 1 parent 0add205
Aakash Desai authored September 07, 2012 James Socol committed September 07, 2012
31  apps/phonebook/templates/phonebook/keynote.html
... ...
@@ -0,0 +1,31 @@
  1
+{% extends "base.html" %}
  2
+
  3
+{% block page_title %}{{ _('MozCamp LATAM: Keynote') }}{% endblock %}
  4
+{% block body_classes %}box-content{% endblock %}
  5
+
  6
+{% block page_js %}
  7
+  <script type='text/javascript' src='https://videos-cdn.mozilla.net/serv/air_mozilla/jwplayer.js'></script>
  8
+  <script>
  9
+    jwplayer('player').setup({
  10
+      'flashplayer': 'https://videos-cdn.mozilla.net/serv/air_mozilla/player.swf',
  11
+      'file': '{{ settings.KEYNOTE_FILE }}',
  12
+      'provider': 'rtmp',
  13
+      'streamer': 'rtmp://fml.1237.edgecastcdn.net/201237/',
  14
+      'rtmp.subscribe': 'true',
  15
+      'controlbar': 'over',
  16
+      'playlist': 'none',
  17
+      'dock': 'true',
  18
+      'icons': 'true',
  19
+      'quality': 'true',
  20
+      'autostart': 'true',
  21
+      'width': '620',
  22
+      'height': '350'
  23
+    });
  24
+  </script>
  25
+{% endblock %}
  26
+
  27
+{% block main_content %}
  28
+  <div style="margin: 30px auto; width: 620px;">
  29
+    <div id="player">Do not adjust your television...</div>
  30
+  </div>
  31
+{% endblock %}
2  apps/phonebook/urls.py
@@ -15,7 +15,7 @@
15 15
     url('^opensearch.xml$', views.search_plugin, name='search_plugin'),
16 16
     url('^search$', views.search, name='search'),
17 17
     url('^vouch$', views.vouch, name='vouch'),
18  
-
  18
+    url('^mozcamp$', views.keynote, name='keynote'),
19 19
     url('^invite$', views.invite, name='invite'),
20 20
     url('^invited/(?P<id>\d+)$', views.invited, name='invited'),
21 21
 
7  apps/phonebook/views.py
@@ -8,7 +8,7 @@
8 8
 from django.http import HttpResponseForbidden, HttpResponseRedirect
9 9
 from django.shortcuts import redirect, render, get_object_or_404
10 10
 from django.views.decorators.cache import cache_page, never_cache
11  
-from django.views.decorators.http import require_POST
  11
+from django.views.decorators.http import require_POST, require_GET
12 12
 
13 13
 import commonware.log
14 14
 from funfactory.urlresolvers import reverse
@@ -255,3 +255,8 @@ def vouch(request):
255 255
         return redirect(reverse('profile', args=[p.user.username]))
256 256
 
257 257
     return HttpResponseForbidden
  258
+
  259
+@require_GET
  260
+@vouch_required
  261
+def keynote(request):
  262
+    return render(request, 'phonebook/keynote.html')
4  settings/default.py
@@ -244,3 +244,7 @@
244 244
 
245 245
 # This is for the commons/helper.py thumbnail.
246 246
 DEFAULT_IMAGE_SRC = path('./media/uploads/unknown.png')
  247
+
  248
+# TEMPORARY
  249
+# TODO: Remove this
  250
+KEYNOTE_FILE = None

0 notes on commit 19a7875

Please sign in to comment.
Something went wrong with that request. Please try again.