Changeset - 9c4663a5c0ed
[Not reviewed]
Merge
1 3 6
Christopher Neugebauer - 4 years ago 2017-08-09 02:53:25
_@chrisjrn.com
Merge pull request #5 from northbaypython/josh/copy

stub out static site pages
9 files changed with 66 insertions and 16 deletions:
0 comments (0 inline, 0 general)
.gitignore
Show inline comments
...
 
@@ -2,6 +2,7 @@
 
node_modules/
 
_build/
 
.DS_Store
 
dev.db
 
.coverage
 
staticfiles
 
venv/
pinaxcon/templates/_default_sidebar.html
Show inline comments
...
 
@@ -4,17 +4,16 @@
 

	
 
{% sponsor_levels as levels %}
 

	
 
<h4>Sponsors</h4>
 

	
 
<div class="sponsor-list">
 
    {% box "sponsor-top" %}
 
    {% for level in levels %}
 
        {% if level.sponsors %}
 
            <h3 style="margin-top: 3em;">{{ level.name }}</h3>
 
\
 

	
 
            {% for sponsor in level.sponsors %}
 
                <div style="margin: 10px 0;">
 
                    <a href="{{ sponsor.external_url }}">
 
                        <img src="{% thumbnail sponsor.website_logo '100x60' %}" alt="{{ sponsor.name }}" />
 
                    </a>
 
                </div>
pinaxcon/templates/static_pages/about.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body_class %}home{% endblock %}
 

	
 
{% block body %}
 

	
 
{% endblock %}
pinaxcon/templates/static_pages/code-of-conduct.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body_class %}home{% endblock %}
 

	
 
{% block body %}
 

	
 
{% endblock %}
pinaxcon/templates/static_pages/homepage.html
Show inline comments
 
file renamed from pinaxcon/templates/homepage.html to pinaxcon/templates/static_pages/homepage.html
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body_class %}home{% endblock %}
 

	
 
{% block body %}
 
  <h1>{{ SITE_NAME }}</h1>
 
  <p class="lead">Welcome to the demo site.</p>
 

	
 
{% endblock %}
pinaxcon/templates/static_pages/news.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body_class %}home{% endblock %}
 

	
 
{% block body %}
 

	
 
{% endblock %}
pinaxcon/templates/static_pages/proposals.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body_class %}home{% endblock %}
 

	
 
{% block body %}
 

	
 
{% endblock %}
pinaxcon/templates/static_pages/sponsors.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 

	
 
{% block head_title %}{% trans "Welcome" %}{% endblock %}
 

	
 
{% block body_class %}home{% endblock %}
 

	
 
{% block body %}
 

	
 
{% endblock %}
pinaxcon/urls.py
Show inline comments
...
 
@@ -6,31 +6,27 @@ from django.views.generic import TemplateView
 
from django.contrib import admin
 

	
 
import symposion.views
 

	
 

	
 
urlpatterns = [
 
    url(r"^$", TemplateView.as_view(template_name="homepage.html"), name="home"),
 

	
 
    url(r"^about$", TemplateView.as_view(template_name="pages/about.html"), name="page_about"),
 
    url(r"^venue$", TemplateView.as_view(template_name="pages/venue.html"), name="page_venue"),
 
    url(
 
        r"^sponsors/info$",
 
        TemplateView.as_view(template_name="pages/sponsors/info.html"),
 
        name="page_sponsor_info",
 
    ),
 

	
 
    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="static_pages/proposals.html"), name="about"),
 
    url(r"^news$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="news"),
 
    url(r"^admin/", include(admin.site.urls)),
 

	
 
    url(r"^account/", include("account.urls")),
 

	
 
    url(r"^dashboard/", symposion.views.dashboard, name="dashboard"),
 

	
 
    url(r"^speaker/", include("symposion.speakers.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$", TemplateView.as_view(template_name="static_pages/proposals.html"), name="sponsors"),
 
    url(r"^reviews/", include("symposion.reviews.urls")),
 
    url(r"^schedule/", include("symposion.schedule.urls")),
 

	
 
    url(r"^teams/", include("symposion.teams.urls")),
 

	
 
    # Demo payment gateway and related features
...
 
@@ -40,13 +36,11 @@ urlpatterns = [
 
    url(r"^register/payments/", include("registripe.urls")),
 

	
 
    # Required by registrasion
 
    url(r'^register/', include('registrasion.urls')),
 
    url(r'^nested_admin/', include('nested_admin.urls')),
 

	
 
    url(r"^boxes/", include("pinax.boxes.urls")),
 

	
 
    # Catch-all MUST go last.
 
    #url(r"^", include("pinax.pages.urls")),
 
]
 

	
 
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
0 comments (0 inline, 0 general)