File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
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 %}
You can’t perform that action at this time.
0 commit comments