Commits

Kenneth Love committed 74f0f71

moved templates since i forgot that before. added oembed

Comments (0)

Files changed (7)

lightning/settings/base.py

     'south',
     'social_auth',
     'uni_form',
+    'oembed',
 )
 
 MY_APPS = (

lightning/talks/views.py

 
 
 class TalksView(ListView):
-    template_name = 'common/talks.html'
+    template_name = 'talks/your_talks.html'
     model = Talk
 
     @method_decorator(login_required)
 
 
 class CreateTalkView(CreateView):
-    template_name = 'common/create_talk.html'
+    template_name = 'talks/create_talk.html'
     form_class = TalkForm
 
     @method_decorator(login_required)

lightning/templates/common/create_talk.html

-{% extends "_layouts/base.html" %}
-
-{% block page_title %}Create a talk | {% endblock %}
-
-{% block page_content %}
-<h2>Create a new talk</h2>
-<p>All fields are required.</p>
-
-{% load uni_form_tags %}
-{% uni_form form form.helper %}
-{% endblock %}

lightning/templates/common/talks.html

-{% extends "_layouts/base.html" %}
-
-{% block page_title %}Your talks | {% endblock %}
-
-{% block page_content %}
-<h2>Your talks</h2>
-{% for talk in object_list %}
-<article>
-	<a href="#"><h3>{{ talk.name }}</h3></a>
-	{{ talk.description|linebreaks }}
-</article>
-{% empty %}
-<article><h3>No talks yet.</h3></article>
-{% endfor %}
-{% endblock %}

lightning/templates/talks/create_talk.html

+{% extends "_layouts/base.html" %}
+
+{% block page_title %}Create a talk | {% endblock %}
+
+{% block page_content %}
+<h2>Create a new talk</h2>
+<p>All fields are required.</p>
+
+{% load uni_form_tags %}
+{% uni_form form form.helper %}
+{% endblock %}

lightning/templates/talks/your_talks.html

+{% extends "_layouts/base.html" %}
+
+{% block page_title %}Your talks | {% endblock %}
+
+{% block page_content %}
+<h2>Your talks</h2>
+{% for talk in object_list %}
+<article>
+	<a href="#"><h3>{{ talk.name }}</h3></a>
+	{{ talk.description|linebreaks }}
+	<div class="row">
+		<div class="span8 columns">
+			{% load oembed_tags %}
+			{% oembed %}
+			{{ talk.url }}
+			{% endoembed %}
+		</div>
+		<div class="span8 columns">
+			Slides go here
+		</div>
+	</div>
+</article>
+{% empty %}
+<article><h3>No talks yet.</h3></article>
+{% endfor %}
+{% endblock %}
 django-uni-form==0.8.0
 Unipath==0.2.1
 psycopg2==2.4.2
+django-oembed==0.1.3