Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[bug 812455] Temp page for Mozcamp Asia.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Nov 16, 2012
1 parent 5b8de72 commit a4e5943
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
33 changes: 33 additions & 0 deletions apps/phonebook/templates/phonebook/keynote.html
Original file line number Original file line Diff line number Diff line change
@@ -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 %}
1 change: 1 addition & 0 deletions apps/phonebook/urls.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
url('^opensearch.xml$', views.search_plugin, name='search_plugin'), url('^opensearch.xml$', views.search_plugin, name='search_plugin'),
url('^search$', views.search, name='search'), url('^search$', views.search, name='search'),
url('^vouch$', views.vouch, name='vouch'), url('^vouch$', views.vouch, name='vouch'),
url('^mozcamp$', views.keynote, name='keynote'),
url('^invite$', views.invite, name='invite'), url('^invite$', views.invite, name='invite'),
url('^invited/(?P<id>\d+)$', views.invited, name='invited'), url('^invited/(?P<id>\d+)$', views.invited, name='invited'),


Expand Down
4 changes: 4 additions & 0 deletions apps/phonebook/views.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -272,3 +272,7 @@ def vouch(request):
return redirect(reverse('profile', args=[p.user.username])) return redirect(reverse('profile', args=[p.user.username]))


return HttpResponseForbidden return HttpResponseForbidden

@vouch_required
def keynote(request):
return render(request, 'phonebook/keynote.html')
4 changes: 4 additions & 0 deletions settings/default.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -255,3 +255,7 @@


# This is for the commons/helper.py thumbnail. # This is for the commons/helper.py thumbnail.
DEFAULT_IMAGE_SRC = path('./media/uploads/unknown.png') 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.