Changeset - cb4943a7d045
[Not reviewed]
0 4 4
Christopher Neugebauer - 7 years ago 2017-06-08 00:51:13
chrisjrn@gmail.com
Adds some bare pages for things that aren’t the homepage.
8 files changed with 60 insertions and 10 deletions:
0 comments (0 inline, 0 general)
fixtures/sitetree.json
Show inline comments
...
 
@@ -17,7 +17,7 @@
 
            "description": "",
 
            "insitetree": true,
 
            "hint": "",
 
            "url": "pages_page \"about/\"",
 
            "url": "page_about",
 
            "inbreadcrumbs": true,
 
            "title": "About",
 
            "tree": 1,
...
 
@@ -40,7 +40,7 @@
 
            "description": "",
 
            "insitetree": true,
 
            "hint": "",
 
            "url": "pages_page \"venue/\"",
 
            "url": "page_venue",
 
            "inbreadcrumbs": true,
 
            "title": "Venue",
 
            "tree": 1,
...
 
@@ -109,9 +109,9 @@
 
            "description": "",
 
            "insitetree": true,
 
            "hint": "",
 
            "url": "sponsor_apply",
 
            "url": "page_sponsor_info",
 
            "inbreadcrumbs": true,
 
            "title": "Apply to be a Sponsor",
 
            "title": "Prospectus",
 
            "tree": 1,
 
            "access_perm_type": 1,
 
            "alias": null,
pinaxcon/templates/homepage.html
Show inline comments
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 
{% load pinax_boxes_tags %}
 

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

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

	
 
{% block body %}
 
    {% box "homepage" %}
 
  <h1>{{ SITE_NAME }}</h1>
 
  <p class="lead">Welcome to the demo site.</p>
 
{% endblock %}
pinaxcon/templates/page_with_title_and_lede.html
Show inline comments
 
new file 100644
 
{% extends "site_base.html" %}
 

	
 
{% block head_title %}{% block title %}{% endblock %}{% endblock %}
 

	
 
{% block body %}
 

	
 
  {% block heading_base %}
 
    <h1>{% block heading %}{% endblock %}</h1>
 
  {% endblock %}
 

	
 
  {% block lede_base %}
 
    <p class="lead">{% block lede %}{% endblock %}</p>
 
  {% endblock %}
 

	
 
  {% block content %}
 
  {% endblock %}
 

	
 
{% endblock %}
pinaxcon/templates/pages/about.html
Show inline comments
 
new file 100644
 
{% extends "page_with_title_and_lede.html" %}
 

	
 
{% block title %}About {{ SITE_NAME }}{% endblock %}
 
{% block heading %}About {{ SITE_NAME }}{% endblock %}
 
{% block lede %}{{ SITE_NAME }} is the premier demo conference site for Symposion and Registrasion{% endblock %}
 

	
 
{% block content %}
 
  <p>I am the body content</p>
 
{% endblock %}
pinaxcon/templates/pages/sponsors/info.html
Show inline comments
 
new file 100644
 
{% extends "page_with_title_and_lede.html" %}
 

	
 
{% block title %}Sponsorship Prospectus{% endblock %}
 
{% block heading %}Sponsorship Prospectus{% endblock %}
 
{% block lede %}{{ SITE_NAME }} wants sponsors.{% endblock %}
 

	
 
{% block content %}
 
  <p>I am the body content</p>
 
{% endblock %}
pinaxcon/templates/pages/venue.html
Show inline comments
 
new file 100644
 
{% extends "page_with_title_and_lede.html" %}
 

	
 
{% block title %}Venue{% endblock %}
 
{% block heading %}Venue{% endblock %}
 
{% block lede %}{{ SITE_NAME }} is being held on a Django Hosting facility, somewhere.{% endblock %}
 

	
 
{% block content %}
 
  <p>I am the body content</p>
 
{% endblock %}
pinaxcon/templates/site_base.html
Show inline comments
...
 
@@ -5,12 +5,10 @@
 
{% load i18n %}
 
{% load sitetree %}
 

	
 

	
 
{% block styles %}
 
    {% include "_styles.html" %}
 
{% endblock %}
 

	
 

	
 
{% block extra_head_base %}
 
    {% block extra_head %}{% endblock %}
 
{% endblock %}
pinaxcon/urls.py
Show inline comments
...
 
@@ -10,6 +10,15 @@ 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"^admin/", include(admin.site.urls)),
 

	
 
    url(r"^account/", include("account.urls")),
0 comments (0 inline, 0 general)