Skip to content

Commit 63ee037

Browse files
committed
create a PSF template without left-sidebar
1 parent 34119ad commit 63ee037

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

templates/psf/full-width.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{# ===== PSF Default Content PAGE ===== #}
2+
3+
{% extends "base.html" %}
4+
{% load boxes %}
5+
6+
{# TODO: Try to deduplicate this and templates/pages/default.html. #}
7+
{% block page_title %}{{ page.title }} | Python Software Foundation{% endblock %}
8+
{% block og_title %}{{ page.title }}{% endblock %}
9+
{% block page-descript %}{% if page.description and page.description.strip %}{{ page.description }}{% else %}{{ block.super }}{% endif %}{% endblock %}
10+
{% block og-descript %}{% if page.description and page.description.strip %}{{ page.description }}{% else %}{{ block.super }}{% endif %}{% endblock %}
11+
{% block page-keywords %}{% if page.keywords and page.keywords.strip %}{{ page.keywords }}{% else %}{{ block.super }}{% endif %}{% endblock %}
12+
13+
{% block body_attributes %}class="psf pages default-page"{% endblock %}
14+
15+
{% block section-logo %}<a href="/psf-landing/"><img class="psf-logo" src="{{ STATIC_URL }}img/psf-logo.png" alt="Python Software Foundation"></a>{% endblock %}
16+
17+
{% block main-nav_attributes %}psf-navigation{% endblock %}
18+
19+
{% block main_navigation %}
20+
{% load sitetree %}
21+
{% sitetree_menu from "main" include "psf-meta" template "sitetree/submenu.html" %}
22+
{% endblock %}
23+
24+
25+
26+
{% block breadcrumbs %}
27+
{% load sitetree %}
28+
29+
{% sitetree_breadcrumbs from "main" template "sitetree/breadcrumbs.html" %}
30+
{% endblock breadcrumbs %}
31+
32+
33+
{% block content %}
34+
{% if not page.is_published %}
35+
<div class="user-feedback level-notice">
36+
<p role="alert">This page is a draft and it hasn't been published yet. Only staff users can see it.</p>
37+
</div>
38+
{% endif %}
39+
40+
<article class="text">
41+
{% if request.user.is_staff %}
42+
<a role="button" class="button" href="{% url 'admin:pages_page_change' page.pk %}">Edit this page</a>
43+
{% endif %}
44+
45+
{{ page.content }}
46+
47+
</article>
48+
{% endblock content %}

0 commit comments

Comments
 (0)