Changeset View
Changeset View
Standalone View
Standalone View
films/templates/films/base_films.html
| {% extends 'common/base.html' %} | {% extends 'common/base.html' %} | ||||
| {% block bodyclasses %} | {% block bodyclasses %} | ||||
| has-secondary-nav | has-secondary-nav | ||||
| {% endblock bodyclasses %} | {% endblock bodyclasses %} | ||||
| {% block meta %} | {% block meta %} | ||||
| {% with title=film.title description=film.description image_url=film.thumbnail_m_url %} | {% with title=film.title description=film.description image_url=film.thumbnail_m_url %} | ||||
| {% include 'common/components/meta.html' %} | {% include 'common/components/meta.html' %} | ||||
| {% endwith %} | {% endwith %} | ||||
| {% endblock %} | {% endblock %} | ||||
| {% block secondary_nav %} | {% block secondary_nav %} | ||||
| <div class="navbar-secondary"> | <div class="navbar-secondary"> | ||||
| <div class="navdrawer-offset"> | <div class="navdrawer-offset"> | ||||
| <div class="container-xl"> | <div class="container-xl"> | ||||
| <div class="list-group list-group-flush list-group-horizontal small side-scroll"> | <div class="list-group list-group-flush list-group-horizontal small side-scroll"> | ||||
| <a class="list-group-item" href="{% url 'film-detail' film_slug=film.slug %}"> | <a class="list-group-item" href="{% url 'film-detail' film_slug=film.slug %}"> | ||||
| {{ film.title }} | {{ film.title }} | ||||
| </a> | </a> | ||||
| {% for flatpage in film.flatpages.all %} | {% for flatpage in film.flatpages.all %} | ||||
| <a class="list-group-item" href="{% url 'film-flatpage' film_slug=film.slug page_slug=flatpage.slug %}"> | <a class="list-group-item" href="{% url 'film-flatpage' film_slug=film.slug page_slug=flatpage.slug %}"> | ||||
| {{ flatpage.title|title }} | {{ flatpage.title|title }} | ||||
| </a> | </a> | ||||
| {% endfor %} | {% endfor %} | ||||
| <a class="list-group-item {% if current_collection %}active{% endif %}" | <a class="list-group-item {% if current_collection %}active{% endif %}" | ||||
| href="{% url 'film-gallery' film_slug=film.slug %}"> | href="{% url 'film-gallery' film_slug=film.slug %}"> | ||||
| Content Gallery | Content Gallery | ||||
| </a> | </a> | ||||
| {% if film.show_production_logs_nav_link %} | {% if film.show_production_logs_nav_link %} | ||||
| <a class="list-group-item {% if date_list or production_log.name %}active{% endif %}" href="{% url 'film-production-logs' film_slug=film.slug %}"> | <a class="list-group-item {% if date_list or production_log.name %}active{% endif %}" href="{% url 'film-production-logs' film_slug=film.slug %}"> | ||||
| Production Logs | Production Logs | ||||
| </a> | </a> | ||||
| {% endif %} | {% endif %} | ||||
| {% if user_can_edit_film %} | {% if user_can_edit_film %} | ||||
| <a href="{{ film.admin_url }}" class="list-group-item btn-icon small"> | <a href="{{ film.admin_url }}" class="list-group-item btn-icon small"> | ||||
| Admin Edit | Admin Edit | ||||
| </a> | </a> | ||||
| {% endif %} | {% endif %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {% endblock secondary_nav %} | {% endblock secondary_nav %} | ||||