Events: Talks and Sprints

This commit is contained in:
Katie McLaughlin 2016-06-26 13:10:34 +10:00
parent 3a36dea910
commit fd3f53e160
10 changed files with 70 additions and 15 deletions

View file

@ -15,13 +15,13 @@ Although the contributions of volunteers of are gratefully accepted, some things
Memberships
------------
.. raw:: html
<a class="gumroad-button" href="https://gum.co/CRtHg?wanted=true" target="_blank">Become an individual member</a>
<a class="gumroad-button" href="https://gum.co/CRtHg" target="_blank">Become an individual member</a>
Corporate memberships
----------------------
If you'd like to talk to someone about other branding or sponsorship opportunities.
Please direct all financial donation enquiries to `Russell Keith-Magee <mailto:russell@pybee.org>`__
If you'd like to talk to someone about other branding or sponsorship opportunities, please direct enquiries to `Russell Keith-Magee <mailto:russell@pybee.org>`__

View file

@ -1 +1,3 @@
_model: events
---
title: Events

View file

@ -0,0 +1,9 @@
title: PyCon AU 2016 Sprints
---
date: 2016-08-15
---
event_type: sprint
---
url: https://2016.pycon-au.org/
---
speaker: Russell Keith-Magee, Katie McLaughlin

View file

@ -2,12 +2,14 @@ author:
---
date: 2016-07-17
---
description:
New York's premier Python event!
Russell will be speaking at PyGotham this year about BeeWare in his talk "A Tale of Two Cellphones"
description:
---
title: PyGotham 2016
---
url: https://2016.pygotham.org/talks/240/a-tale-of-two-cellphones/
---
event_type: talk
---
speaker: Russell Keith-Magee
---
talk_title: A Tale Of Two Cellphones

View file

@ -0,0 +1,9 @@
title: PyOhio 2016 Sprints
---
date: 2016-08-01
---
event_type: sprint
---
url: http://pyohio.org/sprints/
---
speaker: Russell Keith-Magee

View file

@ -0,0 +1,9 @@
title: PyOhio 2016
---
date: 2016-07-30
---
event_type: talk
---
speaker: Russell Keith-Magee
---
url: http://pyohio.org/schedule/presentation/249/

View file

@ -8,15 +8,29 @@ label = Title
type = string
size = large
[fields.author]
label = Author
type = string
[fields.event_type]
label = Event Type
type = select
choices = talk, sprint, booth
choise_labels = Talk, Sprint, Booth
width = 1/4
[fields.speaker]
label = Speakers
type = checkboxes
choices = Russell Keith-Magee, Philip James, Katie McLaughlin
choice_labels = Russell Keith-Magee, Philip James, Katie McLaughlin
width = 1/2
[fields.url]
label = URL
label = Event URL
type = url
[fields.talk_title]
label = Talk Title
type = string
[fields.date]
label = Event date
type = date

View file

@ -9,7 +9,7 @@ type = string
[children]
model = event
order_by = -date, title
order_by = date, title
[pagination]
enabled = yes

View file

@ -10,5 +10,15 @@
</div>
{% endblock %}
{% block body %}
{% if this.event_type == "talk" %}
<p>{{ this.speaker|join(" and ")}} will be speaking at {{this.title}}, giving a presentation entitled "<a href="{{event_url}}">{{this.talk_title}}"</a>.
{% elif this.event_type == "sprint" %}
<p>BeeWare will be running a sprint at {{this.title}}.</p>
<p>{{ this.speaker|join(" and ") }} will be at the sprints, and will be more than willing to help First Time Contributors earn their own shiny <a href="/contributing/challenge-coins/">Challenge Coin</a>.
<h3>What is a Sprint?</h3>
<p>A code sprint is ... . </p>
<p>For more information, check the <a href="{{this.url}}">{{this.title}} website</a></p>
{% else %}
<p>{{ this.description }}</p>
{% endif %}
{% endblock %}

View file

@ -12,6 +12,6 @@
{% endblock %}
{% block body %}
{% for child in this.children %}
<a href="{{ child|url }}">{{ child.title }}</a>
<h3><a href="{{ child|url }}">{{ child.title }}</a></h3>
{% endfor %}
{% endblock %}