Merge pull request #5 from northbaypython/josh/copy

stub out static site pages
This commit is contained in:
Christopher Neugebauer 2017-08-08 19:53:25 -07:00 committed by GitHub
commit 9c4663a5c0
9 changed files with 66 additions and 16 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ _build/
dev.db dev.db
.coverage .coverage
staticfiles staticfiles
venv/

View file

@ -7,11 +7,10 @@
<h4>Sponsors</h4> <h4>Sponsors</h4>
<div class="sponsor-list"> <div class="sponsor-list">
{% box "sponsor-top" %}
{% for level in levels %} {% for level in levels %}
{% if level.sponsors %} {% if level.sponsors %}
<h3 style="margin-top: 3em;">{{ level.name }}</h3> <h3 style="margin-top: 3em;">{{ level.name }}</h3>
\
{% for sponsor in level.sponsors %} {% for sponsor in level.sponsors %}
<div style="margin: 10px 0;"> <div style="margin: 10px 0;">
<a href="{{ sponsor.external_url }}"> <a href="{{ sponsor.external_url }}">

View file

@ -0,0 +1,11 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{% trans "Welcome" %}{% endblock %}
{% block body_class %}home{% endblock %}
{% block body %}
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{% trans "Welcome" %}{% endblock %}
{% block body_class %}home{% endblock %}
{% block body %}
{% endblock %}

View file

@ -2,9 +2,10 @@
{% load i18n %} {% load i18n %}
{% block head_title %}{% trans "Welcome" %}{% endblock %}
{% block body_class %}home{% endblock %} {% block body_class %}home{% endblock %}
{% block body %} {% block body %}
<h1>{{ SITE_NAME }}</h1>
<p class="lead">Welcome to the demo site.</p>
{% endblock %} {% endblock %}

View file

@ -0,0 +1,11 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{% trans "Welcome" %}{% endblock %}
{% block body_class %}home{% endblock %}
{% block body %}
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{% trans "Welcome" %}{% endblock %}
{% block body_class %}home{% endblock %}
{% block body %}
{% endblock %}

View file

@ -0,0 +1,11 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block head_title %}{% trans "Welcome" %}{% endblock %}
{% block body_class %}home{% endblock %}
{% block body %}
{% endblock %}

View file

@ -9,16 +9,10 @@ import symposion.views
urlpatterns = [ urlpatterns = [
url(r"^$", TemplateView.as_view(template_name="homepage.html"), name="home"), url(r"^$", TemplateView.as_view(template_name="static_pages/homepage.html"), name="home"),
url(r"^code-of-conduct$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="code-of-conduct"),
url(r"^about$", TemplateView.as_view(template_name="pages/about.html"), name="page_about"), url(r"^about$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="about"),
url(r"^venue$", TemplateView.as_view(template_name="pages/venue.html"), name="page_venue"), url(r"^news$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="news"),
url(
r"^sponsors/info$",
TemplateView.as_view(template_name="pages/sponsors/info.html"),
name="page_sponsor_info",
),
url(r"^admin/", include(admin.site.urls)), url(r"^admin/", include(admin.site.urls)),
url(r"^account/", include("account.urls")), url(r"^account/", include("account.urls")),
@ -27,7 +21,9 @@ urlpatterns = [
url(r"^speaker/", include("symposion.speakers.urls")), url(r"^speaker/", include("symposion.speakers.urls")),
url(r"^proposals/", include("symposion.proposals.urls")), url(r"^proposals/", include("symposion.proposals.urls")),
url(r"^proposals$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="proposals"),
url(r"^sponsors/", include("symposion.sponsorship.urls")), url(r"^sponsors/", include("symposion.sponsorship.urls")),
url(r"^sponsors$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="sponsors"),
url(r"^reviews/", include("symposion.reviews.urls")), url(r"^reviews/", include("symposion.reviews.urls")),
url(r"^schedule/", include("symposion.schedule.urls")), url(r"^schedule/", include("symposion.schedule.urls")),
@ -43,8 +39,6 @@ urlpatterns = [
url(r'^register/', include('registrasion.urls')), url(r'^register/', include('registrasion.urls')),
url(r'^nested_admin/', include('nested_admin.urls')), url(r'^nested_admin/', include('nested_admin.urls')),
url(r"^boxes/", include("pinax.boxes.urls")),
# Catch-all MUST go last. # Catch-all MUST go last.
#url(r"^", include("pinax.pages.urls")), #url(r"^", include("pinax.pages.urls")),
] ]