-
-
Notifications
You must be signed in to change notification settings - Fork 669
Expand file tree
/
Copy pathdefault.html
More file actions
75 lines (48 loc) · 2.36 KB
/
default.html
File metadata and controls
75 lines (48 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{# ===== PSF Default Content PAGE ===== #}
{% extends "base.html" %}
{% load boxes %}
{% load banners %}
{% load page_tags %}
{# TODO: Try to deduplicate this and templates/pages/default.html. #}
{% block page_title %}{{ page.title }} | Python Software Foundation{% endblock %}
{% block og_title %}{{ page.title }}{% endblock %}
{% block page-descript %}{% if page.description and page.description.strip %}{{ page.description }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block og-descript %}{% if page.description and page.description.strip %}{{ page.description }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block page-keywords %}{% if page.keywords and page.keywords.strip %}{{ page.keywords }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block body_attributes %}class="psf pages default-page"{% endblock %}
{% block section-logo %}<a href="/psf-landing/"><img class="psf-logo" src="{{ STATIC_URL }}img/psf-logo.png" alt="Python Software Foundation"></a>{% endblock %}
{% block main-nav_attributes %}psf-navigation{% endblock %}
{% block main_navigation %}
{% load sitetree %}
{% sitetree_menu from "main" include "psf-meta" template "sitetree/submenu.html" %}
{% endblock %}
{% block breadcrumbs %}
{% load sitetree %}
{% render_active_psf_banner %}
{% sitetree_breadcrumbs from "main" template "sitetree/breadcrumbs.html" %}
{% endblock breadcrumbs %}
{% block content_attributes %}with-left-sidebar{% endblock %}
{% block content %}
{% if not page.is_published %}
<div class="user-feedback level-notice">
<p role="alert">This page is a draft and it hasn't been published yet. Only staff users can see it.</p>
</div>
{% endif %}
<article class="text">
{% if request.user.is_staff %}
<a role="button" class="button" href="{% url 'admin:pages_page_change' page.pk %}">Edit this page</a>
{% endif %}
<header class="article-header">
<h1 class="page-title">{{ page.title }}</h1>
</header>
{{ page.content|add_heading_anchors }}
</article>
{% endblock content %}
{% block left_sidebar %}
<aside class="left-sidebar" role="secondary">
{% include "components/navigation-widget.html" %}
<div class="psf-sidebar-widget sidebar-widget">
{% box 'widget-sidebar-aboutpsf' %}
</div>
</aside>
{% endblock left_sidebar %}