Changeset View
Changeset View
Standalone View
Standalone View
common/templates/flatpages/default.html
| {% extends 'common/base.html' %} | {% extends 'common/base.html' %} | ||||
| {% load common_extras %} | {% load common_extras %} | ||||
| {% block meta %} | {% block meta %} | ||||
| {% with title=flatpage.title %} | {% with title=flatpage.title %} | ||||
| {% include 'common/components/meta.html' %} | {% include 'common/components/meta.html' %} | ||||
| {% endwith %} | {% endwith %} | ||||
| {% endblock %} | {% endblock %} | ||||
| {% block content %} | {% block content %} | ||||
| <div class="content-holder navdrawer-offset"> | <div class="content-holder navdrawer-offset"> | ||||
| <div class="container-fluid pt-4"> | <div class="container-fluid pt-4"> | ||||
| {% if user.is_staff and perms.flatpages.change_flatpage %} | {% if user.is_staff and perms.flatpages.change_flatpage %} | ||||
| <section class="flat-page-content mb-4"> | <section class="flat-page-content mb-4"> | ||||
| <a class="btn btn-secondary btn-sm admin-float" | <a class="btn btn-secondary btn-sm admin-float" | ||||
| href="{% url 'admin:flatpages_flatpage_change' flatpage.id %}">Edit Page</a> | href="{% url 'admin:flatpages_flatpage_change' flatpage.id %}">Edit Page</a> | ||||
| </section> | </section> | ||||
| {% endif %} | {% endif %} | ||||
| {% block flatpage_content %} | {% block flatpage_content %} | ||||
| <section class="flat-page-content mb-4"> | <section class="flat-page-content mb-4"> | ||||
| <div class="row justify-content-center mb-3"> | <div class="row justify-content-center mb-3"> | ||||
| <div class="col-md-6 text-center"> | <div class="col-md-6 text-center"> | ||||
| <h1 class="mb-0">{{ flatpage.title }}</h1> | <h1 class="mb-0">{{ flatpage.title }}</h1> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col"> | <div class="col"> | ||||
| {% with_shortcodes flatpage.content|markdown_unsafe %} | {% with_shortcodes flatpage.content|markdown_unsafe %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </section> | </section> | ||||
| {% endblock flatpage_content %} | {% endblock flatpage_content %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {% endblock content %} | {% endblock content %} | ||||