From febf21c8480becc3c8b912ed63ab33fec669508b Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Wed, 9 Aug 2017 21:25:12 -0700 Subject: [PATCH] rejigger url scheme, organize static pages, and stub out last two pages needed for launch --- pinaxcon/templates/_footer.html | 2 +- .../static_pages/{ => about}/colophon.html | 2 +- .../north-bay-python.html} | 0 .../templates/static_pages/about/team.html | 13 ++++++ .../code-of-conduct.html | 2 +- .../{ => code-of-conduct}/code-of-conduct.md | 2 +- .../harassment-procedure-attendee.html | 2 +- .../harassment-procedure-attendee.md | 2 +- .../harassment-procedure-staff.html | 2 +- .../harassment-procedure-staff.md | 2 +- .../call-for-proposals.html} | 4 +- .../call-for-proposals.md} | 4 +- .../{ => program}/selection-process.html | 4 +- .../{ => program}/selection-process.md | 0 .../become-a-sponsor.html} | 4 +- .../static_pages/terms-and-conditions.html | 13 ++++++ pinaxcon/urls.py | 43 +++++++++++++++---- 17 files changed, 77 insertions(+), 24 deletions(-) rename pinaxcon/templates/static_pages/{ => about}/colophon.html (85%) rename pinaxcon/templates/static_pages/{about.html => about/north-bay-python.html} (100%) create mode 100644 pinaxcon/templates/static_pages/about/team.html rename pinaxcon/templates/static_pages/{ => code-of-conduct}/code-of-conduct.html (83%) rename pinaxcon/templates/static_pages/{ => code-of-conduct}/code-of-conduct.md (98%) rename pinaxcon/templates/static_pages/{ => code-of-conduct}/harassment-procedure-attendee.html (82%) rename pinaxcon/templates/static_pages/{ => code-of-conduct}/harassment-procedure-attendee.md (93%) rename pinaxcon/templates/static_pages/{ => code-of-conduct}/harassment-procedure-staff.html (83%) rename pinaxcon/templates/static_pages/{ => code-of-conduct}/harassment-procedure-staff.md (97%) rename pinaxcon/templates/static_pages/{proposals.html => program/call-for-proposals.html} (72%) rename pinaxcon/templates/static_pages/{proposals.md => program/call-for-proposals.md} (92%) rename pinaxcon/templates/static_pages/{ => program}/selection-process.html (72%) rename pinaxcon/templates/static_pages/{ => program}/selection-process.md (100%) rename pinaxcon/templates/static_pages/{sponsors.html => sponsors/become-a-sponsor.html} (58%) create mode 100644 pinaxcon/templates/static_pages/terms-and-conditions.html diff --git a/pinaxcon/templates/_footer.html b/pinaxcon/templates/_footer.html index 8e43953..95b69c7 100644 --- a/pinaxcon/templates/_footer.html +++ b/pinaxcon/templates/_footer.html @@ -1,6 +1,6 @@
North Bay Python is a member project of the Software Freedom Conservancy, a 501(c)(3) charity.
- Code of Conduct | Colophon | Terms and Conditions + Code of Conduct | Terms and Conditions | Colophon
diff --git a/pinaxcon/templates/static_pages/colophon.html b/pinaxcon/templates/static_pages/about/colophon.html similarity index 85% rename from pinaxcon/templates/static_pages/colophon.html rename to pinaxcon/templates/static_pages/about/colophon.html index 922e6e7..78d7f82 100644 --- a/pinaxcon/templates/static_pages/colophon.html +++ b/pinaxcon/templates/static_pages/about/colophon.html @@ -6,7 +6,7 @@ {% block heading %}Colophon{% endblock %} -{% block body_class %}colophon{% endblock %} +{% block body_class %}about{% endblock %} {% block content %} diff --git a/pinaxcon/templates/static_pages/about.html b/pinaxcon/templates/static_pages/about/north-bay-python.html similarity index 100% rename from pinaxcon/templates/static_pages/about.html rename to pinaxcon/templates/static_pages/about/north-bay-python.html diff --git a/pinaxcon/templates/static_pages/about/team.html b/pinaxcon/templates/static_pages/about/team.html new file mode 100644 index 0000000..6e101d5 --- /dev/null +++ b/pinaxcon/templates/static_pages/about/team.html @@ -0,0 +1,13 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}About the Team{% endblock %} + +{% block heading %}About the Team{% endblock %} + +{% block body_class %}about{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/pinaxcon/templates/static_pages/code-of-conduct.html b/pinaxcon/templates/static_pages/code-of-conduct/code-of-conduct.html similarity index 83% rename from pinaxcon/templates/static_pages/code-of-conduct.html rename to pinaxcon/templates/static_pages/code-of-conduct/code-of-conduct.html index 3bf40e7..216d712 100644 --- a/pinaxcon/templates/static_pages/code-of-conduct.html +++ b/pinaxcon/templates/static_pages/code-of-conduct/code-of-conduct.html @@ -12,7 +12,7 @@ {% block content %} {% markdown %} -{% include "static_pages/code-of-conduct.md" %} +{% include "static_pages/code-of-conduct/code-of-conduct.md" %} {% endmarkdown %} {% endblock %} diff --git a/pinaxcon/templates/static_pages/code-of-conduct.md b/pinaxcon/templates/static_pages/code-of-conduct/code-of-conduct.md similarity index 98% rename from pinaxcon/templates/static_pages/code-of-conduct.md rename to pinaxcon/templates/static_pages/code-of-conduct/code-of-conduct.md index 33502d5..46140fc 100644 --- a/pinaxcon/templates/static_pages/code-of-conduct.md +++ b/pinaxcon/templates/static_pages/code-of-conduct/code-of-conduct.md @@ -33,7 +33,7 @@ If a participant engages in behavior that violates this code of conduct, the con Contact Information ------------------- -If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of conference staff. Conference staff will be wearing t-shirts and/or badges that clearly identify them as staff. You may also contact venue staff and ask to be put in touch with the conference chair — Chris Neugebauer. +If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of conference staff. Conference staff will be wearing t-shirts and/or badges that clearly identify them as staff. You may also contact venue staff and ask to be put in touch with the conference chair — Christopher Neugebauer. If the matter is especially urgent, please call our Code of Conduct and safety incident hotline at XXX-YYY-ZZZZ. This number will automatically route to a member of the conference staff who can render assistance. diff --git a/pinaxcon/templates/static_pages/harassment-procedure-attendee.html b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-attendee.html similarity index 82% rename from pinaxcon/templates/static_pages/harassment-procedure-attendee.html rename to pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-attendee.html index 8caacae..8a9bf80 100644 --- a/pinaxcon/templates/static_pages/harassment-procedure-attendee.html +++ b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-attendee.html @@ -12,7 +12,7 @@ {% block content %} {% markdown %} -{% include "static_pages/harassment-procedure-attendee.md" %} +{% include "static_pages/code-of-conduct/harassment-procedure-attendee.md" %} {% endmarkdown %} {% endblock %} diff --git a/pinaxcon/templates/static_pages/harassment-procedure-attendee.md b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-attendee.md similarity index 93% rename from pinaxcon/templates/static_pages/harassment-procedure-attendee.md rename to pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-attendee.md index 1b3bae9..9e606c1 100644 --- a/pinaxcon/templates/static_pages/harassment-procedure-attendee.md +++ b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-attendee.md @@ -20,4 +20,4 @@ The staff is well informed on how to deal with the incident and how to further p **Note**: Incidents that violate the Code of Conduct are extremely damaging to the community, and they will not be tolerated. The silver lining is that, in many cases, these incidents present a chance for the offenders, and the community at large, to grow, learn, and become better. North Bay Python staff requests that they be your first resource when reporting a North Bay Python-related incident, so that they may enforce the Code of Conduct and take quick action toward a resolution. -A listing of [North Bay Python staff is located here](/about/staff), including contact phone numbers. If at all possible, all reports should be made directly to Bleep and Bloop. \ No newline at end of file +A listing of [North Bay Python staff is located here](/about/team), including contact phone numbers. If at all possible, all reports should be made directly to Bleep and Bloop. \ No newline at end of file diff --git a/pinaxcon/templates/static_pages/harassment-procedure-staff.html b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-staff.html similarity index 83% rename from pinaxcon/templates/static_pages/harassment-procedure-staff.html rename to pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-staff.html index 0362f0c..5a15107 100644 --- a/pinaxcon/templates/static_pages/harassment-procedure-staff.html +++ b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-staff.html @@ -12,7 +12,7 @@ {% block content %} {% markdown %} -{% include "static_pages/harassment-procedure-staff.md" %} +{% include "static_pages/code-of-conduct/harassment-procedure-staff.md" %} {% endmarkdown %} {% endblock %} diff --git a/pinaxcon/templates/static_pages/harassment-procedure-staff.md b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-staff.md similarity index 97% rename from pinaxcon/templates/static_pages/harassment-procedure-staff.md rename to pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-staff.md index 24205c0..0ccb248 100644 --- a/pinaxcon/templates/static_pages/harassment-procedure-staff.md +++ b/pinaxcon/templates/static_pages/code-of-conduct/harassment-procedure-staff.md @@ -62,4 +62,4 @@ Depending on the incident, the conference chair, or designate, may decide to mak If some attendees were angered by the incident, it is best to apologize to them that the incident occurred to begin with. If there are residual hard feelings, suggest to them to write an email to the conference chair or to the event coordinator. It will be dealt with accordingly. -A listing of [North Bay Python staff is located here](/about/staff), including contact phone numbers. If at all possible, all reports should be made directly to Bleep and Bloop. \ No newline at end of file +A listing of [North Bay Python staff is located here](/about/team), including contact phone numbers. If at all possible, all reports should be made directly to Bleep and Bloop. \ No newline at end of file diff --git a/pinaxcon/templates/static_pages/proposals.html b/pinaxcon/templates/static_pages/program/call-for-proposals.html similarity index 72% rename from pinaxcon/templates/static_pages/proposals.html rename to pinaxcon/templates/static_pages/program/call-for-proposals.html index 2c4f1a0..0314240 100644 --- a/pinaxcon/templates/static_pages/proposals.html +++ b/pinaxcon/templates/static_pages/program/call-for-proposals.html @@ -7,12 +7,12 @@ {% block heading %}Call for Proposals{% endblock %} -{% block body_class %}proposals{% endblock %} +{% block body_class %}program{% endblock %} {% block content %} {% markdown %} -{% include "static_pages/proposals.md" %} +{% include "static_pages/program/call-for-proposals.md" %} {% endmarkdown %} {% endblock %} diff --git a/pinaxcon/templates/static_pages/proposals.md b/pinaxcon/templates/static_pages/program/call-for-proposals.md similarity index 92% rename from pinaxcon/templates/static_pages/proposals.md rename to pinaxcon/templates/static_pages/program/call-for-proposals.md index 8adb8fa..b4cdd04 100644 --- a/pinaxcon/templates/static_pages/proposals.md +++ b/pinaxcon/templates/static_pages/program/call-for-proposals.md @@ -6,7 +6,7 @@ North Bay Python is seeking speakers of all experience levels, especially first- If you've never presented at a conference before and think you might like to try it, we want to hear from you! The program committee is *very* much interested in encouraging and supporting new speakers, and we will be able to provide detailed feedback and work with you to develop your proposal and talk content so you can give the best talk possible. -In the interest of transparency, we have documented our [Selection Process](./selection-process). +In the interest of transparency, we have documented our [Selection Process](/program/selection-process). ## Dates @@ -20,7 +20,7 @@ In the interest of transparency, we have documented our [Selection Process](./se North Bay Python is dedicated to featuring a diverse and inclusive speaker lineup. -**All speakers will be expected to have read and adhere to the conference [Code of Conduct](./code-of-conduct). In particular for speakers: slide contents and spoken material should be appropriate for a professional audience including people of many different backgrounds. Sexual language and imagery is not appropriate, and neither are language or imagery that denigrate or demean people based on race, gender, religion, sexual orientation, physical appearance, disability, or body size.** +**All speakers will be expected to have read and adhere to the conference [Code of Conduct](/code-of-conduct). In particular for speakers: slide contents and spoken material should be appropriate for a professional audience including people of many different backgrounds. Sexual language and imagery is not appropriate, and neither are language or imagery that denigrate or demean people based on race, gender, religion, sexual orientation, physical appearance, disability, or body size.** We will make every effort to provide accommodations for speakers and attendees of all abilities — all we ask is that you let us know so we can prepare accordingly. diff --git a/pinaxcon/templates/static_pages/selection-process.html b/pinaxcon/templates/static_pages/program/selection-process.html similarity index 72% rename from pinaxcon/templates/static_pages/selection-process.html rename to pinaxcon/templates/static_pages/program/selection-process.html index e91219d..7bec516 100644 --- a/pinaxcon/templates/static_pages/selection-process.html +++ b/pinaxcon/templates/static_pages/program/selection-process.html @@ -7,12 +7,12 @@ {% block heading %}Selection Process{% endblock %} -{% block body_class %}selection-process{% endblock %} +{% block body_class %}program{% endblock %} {% block content %} {% markdown %} -{% include "static_pages/selection-process.md" %} +{% include "static_pages/program/selection-process.md" %} {% endmarkdown %} {% endblock %} diff --git a/pinaxcon/templates/static_pages/selection-process.md b/pinaxcon/templates/static_pages/program/selection-process.md similarity index 100% rename from pinaxcon/templates/static_pages/selection-process.md rename to pinaxcon/templates/static_pages/program/selection-process.md diff --git a/pinaxcon/templates/static_pages/sponsors.html b/pinaxcon/templates/static_pages/sponsors/become-a-sponsor.html similarity index 58% rename from pinaxcon/templates/static_pages/sponsors.html rename to pinaxcon/templates/static_pages/sponsors/become-a-sponsor.html index c994e20..48361d5 100644 --- a/pinaxcon/templates/static_pages/sponsors.html +++ b/pinaxcon/templates/static_pages/sponsors/become-a-sponsor.html @@ -2,9 +2,9 @@ {% load i18n %} -{% block head_title %}Call for Sponsors{% endblock %} +{% block head_title %}Become a Sponsors{% endblock %} -{% block heading %}Call for Sponsors{% endblock %} +{% block heading %}Become a Sponsors{% endblock %} {% block body_class %}sponsors{% endblock %} diff --git a/pinaxcon/templates/static_pages/terms-and-conditions.html b/pinaxcon/templates/static_pages/terms-and-conditions.html new file mode 100644 index 0000000..8686f08 --- /dev/null +++ b/pinaxcon/templates/static_pages/terms-and-conditions.html @@ -0,0 +1,13 @@ +{% extends "page_with_title_and_lede.html" %} + +{% load i18n %} + +{% block head_title %}Terms and Conditions{% endblock %} + +{% block heading %}Terms and Conditions{% endblock %} + +{% block body_class %}terms-and-conditions{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/pinaxcon/urls.py b/pinaxcon/urls.py index 800750d..debec68 100644 --- a/pinaxcon/urls.py +++ b/pinaxcon/urls.py @@ -10,17 +10,44 @@ import symposion.views urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="static_pages/homepage.html"), name="home"), - url(r"^about$", TemplateView.as_view(template_name="static_pages/about.html"), name="about"), + + # about + # TODO add /about + url(r"^about/north-bay-python$", TemplateView.as_view(template_name="static_pages/about/north-bay-python.html"), name="about/north-bay-python"), + # TODO add /about/the-mystic + # TODO add /about/petaluma + url(r"^about/team$", TemplateView.as_view(template_name="static_pages/about/team.html"), name="about/team"), + url(r"^about/colophon$", TemplateView.as_view(template_name="static_pages/about/colophon.html"), name="about/colophon"), + + # program + # TODO add /program + # TODO add /program/sessions + # TODO add /program/events + url(r"^program/call-for-proposals$", TemplateView.as_view(template_name="static_pages/program/call-for-proposals.html"), name="program/call-for-proposals"), + url(r"^program/selection-process$", TemplateView.as_view(template_name="static_pages/program/selection-process.html"), name="program/selection-process"), + + # attend + # TODO add /attend + # TODO add /attend/buy-a-ticket + # TODO add /attend/volunteer + # TODO add /attend/financial-assistance + # TODO add /attend/how-to-pitch-your-manager + # TODO add /attend/how-to-get-here + # TODO add /attend/where-to-stay + url(r"^code-of-conduct$", TemplateView.as_view(template_name="static_pages/code-of-conduct/code-of-conduct.html"), name="code-of-conduct"), + url(r"^code-of-conduct/harassment-incidents$", TemplateView.as_view(template_name="static_pages/code-of-conduct/harassment-procedure-attendee.html"), name="code-of-conduct/harassment-incidents"), + url(r"^code-of-conduct/harassment-staff-procedures$", TemplateView.as_view(template_name="static_pages/code-of-conduct/harassment-procedure-staff.html"), name="code-of-conduct/harassment-staff-procedures"), + url(r"^terms-and-conditions$", TemplateView.as_view(template_name="static_pages/terms-and-conditions.html"), name="terms-and-conditions"), + + # sponsor + # TODO add /sponsors + url(r"^sponsors/become-a-sponsor$", TemplateView.as_view(template_name="static_pages/sponsors/become-a-sponsor.html"), name="sponsors/become-a-sponsor"), + + # news url(r"^news$", TemplateView.as_view(template_name="static_pages/news.html"), name="news"), - url(r"^sponsors$", TemplateView.as_view(template_name="static_pages/sponsors.html"), name="sponsors"), - url(r"^colophon$", TemplateView.as_view(template_name="static_pages/colophon.html"), name="colophon"), - url(r"^proposals$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="proposals"), - url(r"^selection-process$", TemplateView.as_view(template_name="static_pages/selection-process.html"), name="selection-process"), + # Django, Symposion, and Registrasion URLs - url(r"^code-of-conduct$", TemplateView.as_view(template_name="static_pages/code-of-conduct.html"), name="code-of-conduct"), - url(r"^code-of-conduct/harassment-incidents$", TemplateView.as_view(template_name="static_pages/harassment-procedure-attendee.html"), name="harassment-procedure-attendee"), - url(r"^code-of-conduct/harassment-staff-procedures$", TemplateView.as_view(template_name="static_pages/harassment-procedure-staff.html"), name="harassment-procedure-staff"), url(r"^admin/", include(admin.site.urls)), url(r"^account/", include("account.urls")),