Changeset View
Changeset View
Standalone View
Standalone View
films/templates/films/flatpage.html
| {% extends 'films/base_films.html' %} | {% extends 'films/base_films.html' %} | ||||
| {% load common_extras %} | {% load common_extras %} | ||||
| {% block title_prepend %}{{ film.title }}: {{ flatpage.title }} - {% endblock title_prepend %} | {% block title_prepend %}{{ film.title }}: {{ flatpage.title }} - {% endblock title_prepend %} | ||||
| {% block meta %} | {% block meta %} | ||||
| {% capture title %}{{ film.title }}: {{ flatpage.title }}{% endcapture %} | {% capture title %}{{ film.title }}: {{ flatpage.title }}{% endcapture %} | ||||
| {% firstof title flatpage.title film.title as title %} | {% firstof title flatpage.title film.title as title %} | ||||
| {% with description=film.description %} | {% with description=film.description %} | ||||
| {% include 'common/components/meta.html' %} | {% include 'common/components/meta.html' %} | ||||
| {% endwith %} | {% endwith %} | ||||
| {% endblock %} | {% endblock %} | ||||
| {% block content %} | {% block content %} | ||||
| <div class="container-fluid pt-4"> | <div class="container-fluid pt-4"> | ||||
| <section class="flat-page-content"> | <section class="flat-page-content"> | ||||
| {% if user_can_edit_flatpage %} | {% if user_can_edit_flatpage %} | ||||
| <div class="admin-button"> | <div class="admin-button"> | ||||
| <a href="{{ flatpage.admin_url }}" class="btn btn-sm btn-secondary btn-icon btn-float"> | <a href="{{ flatpage.admin_url }}" class="btn btn-sm btn-secondary btn-icon btn-float"> | ||||
| <i class="material-icons">create</i> | <i class="material-icons">create</i> | ||||
| </a> | </a> | ||||
| </div> | </div> | ||||
| {% endif %} | {% endif %} | ||||
| <div class="text-center mb-3"> | <div class="text-center mb-3"> | ||||
| <p class="subtitle">{{ film.title }}</p> | <p class="subtitle">{{ film.title }}</p> | ||||
| <h1 class="mb-0">{{ flatpage.title }}</h1> | <h1 class="mb-0">{{ flatpage.title }}</h1> | ||||
| </div> | </div> | ||||
| </section> | </section> | ||||
| <section class="flat-page-content editorial-text-area mb-4"> | <section class="flat-page-content editorial-text-area mb-4"> | ||||
| <div>{% with_shortcodes flatpage.html_content %}</div> | <div>{% with_shortcodes flatpage.html_content %}</div> | ||||
| </section> | </section> | ||||
| </div> | </div> | ||||
| {% endblock content %} | {% endblock content %} | ||||