Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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 aakashhdesai authored James Socol committed
31 apps/phonebook/templates/phonebook/keynote.html
View
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% block page_title %}{{ _('MozCamp LATAM: Keynote') }}{% endblock %}
+{% block body_classes %}box-content{% endblock %}
+
+{% block page_js %}
+ <script type='text/javascript' src='https://videos-cdn.mozilla.net/serv/air_mozilla/jwplayer.js'></script>
+ <script>
+ jwplayer('player').setup({
+ 'flashplayer': 'https://videos-cdn.mozilla.net/serv/air_mozilla/player.swf',
+ 'file': '{{ settings.KEYNOTE_FILE }}',
+ 'provider': 'rtmp',
+ 'streamer': 'rtmp://fml.1237.edgecastcdn.net/201237/',
+ 'rtmp.subscribe': 'true',
+ 'controlbar': 'over',
+ 'playlist': 'none',
+ 'dock': 'true',
+ 'icons': 'true',
+ 'quality': 'true',
+ 'autostart': 'true',
+ 'width': '620',
+ 'height': '350'
+ });
+ </script>
+{% endblock %}
+
+{% block main_content %}
+ <div style="margin: 30px auto; width: 620px;">
+ <div id="player">Do not adjust your television...</div>
+ </div>
+{% endblock %}
2  apps/phonebook/urls.py
View
@@ -15,7 +15,7 @@
url('^opensearch.xml$', views.search_plugin, name='search_plugin'),
url('^search$', views.search, name='search'),
url('^vouch$', views.vouch, name='vouch'),
-
+ url('^mozcamp$', views.keynote, name='keynote'),
url('^invite$', views.invite, name='invite'),
url('^invited/(?P<id>\d+)$', views.invited, name='invited'),
7 apps/phonebook/views.py
View
@@ -8,7 +8,7 @@
from django.http import HttpResponseForbidden, HttpResponseRedirect
from django.shortcuts import redirect, render, get_object_or_404
from django.views.decorators.cache import cache_page, never_cache
-from django.views.decorators.http import require_POST
+from django.views.decorators.http import require_POST, require_GET
import commonware.log
from funfactory.urlresolvers import reverse
@@ -255,3 +255,8 @@ def vouch(request):
return redirect(reverse('profile', args=[p.user.username]))
return HttpResponseForbidden
+
+@require_GET
+@vouch_required
+def keynote(request):
+ return render(request, 'phonebook/keynote.html')
4 settings/default.py
View
@@ -244,3 +244,7 @@
# This is for the commons/helper.py thumbnail.
DEFAULT_IMAGE_SRC = path('./media/uploads/unknown.png')
+
+# TEMPORARY
+# TODO: Remove this
+KEYNOTE_FILE = None
Please sign in to comment.
Something went wrong with that request. Please try again.