Permalink
Browse files

[bug 812455] Temp page for Mozcamp Asia.

  • Loading branch information...
1 parent 5b8de72 commit a4e59436093aa11aa523a469a466479611270567 @glogiotatidis glogiotatidis committed Nov 16, 2012
Showing with 42 additions and 0 deletions.
  1. +33 −0 apps/phonebook/templates/phonebook/keynote.html
  2. +1 −0 apps/phonebook/urls.py
  3. +4 −0 apps/phonebook/views.py
  4. +4 −0 settings/default.py
View
33 apps/phonebook/templates/phonebook/keynote.html
@@ -0,0 +1,33 @@
+{% extends "base.html" %}
+
+{% block page_title %}{{ _('MozCamp Asia: 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 %}
View
1 apps/phonebook/urls.py
@@ -13,6 +13,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'),
View
4 apps/phonebook/views.py
@@ -272,3 +272,7 @@ def vouch(request):
return redirect(reverse('profile', args=[p.user.username]))
return HttpResponseForbidden
+
+@vouch_required
+def keynote(request):
+ return render(request, 'phonebook/keynote.html')
View
4 settings/default.py
@@ -255,3 +255,7 @@
# This is for the commons/helper.py thumbnail.
DEFAULT_IMAGE_SRC = path('./media/uploads/unknown.png')
+
+# TEMPORARY
+# TODO: Remove this
+KEYNOTE_FILE = None

0 comments on commit a4e5943

Please sign in to comment.