Changeset View
Changeset View
Standalone View
Standalone View
films/templates/films/collection_detail.html
| {% extends 'films/gallery.html' %} | {% extends 'films/gallery.html' %} | ||||
| {% load film_extras %} | {% load film_extras %} | ||||
| {% load common_extras %} | {% load common_extras %} | ||||
| {% block title_append %} - {{ film.title }} {{ current_collection.name }}{% endblock title_append %} | {% block title_append %} - {{ film.title }} {{ current_collection.name }}{% endblock title_append %} | ||||
| {% block gallery_files %} | {% block gallery_files %} | ||||
| <div> | <div> | ||||
| <p>{% with_shortcodes current_collection.text|markdown %}</p> | <p>{% with_shortcodes current_collection.text|markdown %}</p> | ||||
| <div class=""> | <div class=""> | ||||
| <div class="files row grid"> | <div class="files row grid"> | ||||
| <div class="grid-sizer col-6 col-sm-6 col-md-6 col-lg-4"></div> | <div class="grid-sizer col-6 col-sm-6 col-md-6 col-lg-4"></div> | ||||
| {% if child_collections %} | {% if child_collections %} | ||||
| {% for child_collection in child_collections %} | {% for child_collection in child_collections %} | ||||
| {% include "common/components/folder.html" with aspect_ratio=current_collection.thumbnail_aspect_ratio card_sizes="col-6 col-sm-6 col-md-6 col-lg-4" %} | {% include "common/components/folder.html" with aspect_ratio=current_collection.thumbnail_aspect_ratio card_sizes="col-6 col-sm-6 col-md-6 col-lg-4" %} | ||||
| {% endfor %} | {% endfor %} | ||||
| {% endif %} | {% endif %} | ||||
| {% if current_assets %} | {% if current_assets %} | ||||
| {% for asset in current_assets %} | {% for asset in current_assets %} | ||||
| {% if asset.is_published or user_can_edit_asset %} | {% if asset.is_published or user_can_edit_asset %} | ||||
| {% include "common/components/file.html" with asset=asset site_context="gallery" aspect_ratio=current_collection.thumbnail_aspect_ratio card_sizes="col-6 col-sm-6 col-md-6 col-lg-4" %} | {% include "common/components/file.html" with asset=asset site_context="gallery" aspect_ratio=current_collection.thumbnail_aspect_ratio card_sizes="col-6 col-sm-6 col-md-6 col-lg-4" %} | ||||
| {% endif %} | {% endif %} | ||||
| {% endfor %} | {% endfor %} | ||||
| {% endif %} | {% endif %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {% endblock gallery_files %} | {% endblock gallery_files %} | ||||
| {% block scripts %} | {% block scripts %} | ||||
| <script> | <script> | ||||
| makeGrid(); | makeGrid(); | ||||
| </script> | </script> | ||||
| {% endblock scripts %} | {% endblock scripts %} | ||||