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-12 col-sm-6 col-md-6 col-lg-4"></div> | <div class="grid-sizer col-12 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" %} | {% include "common/components/folder.html" %} | ||||
| {% 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 request.user.is_superuser %} | ||||
| {% include "common/components/file.html" with asset=asset site_context="gallery" aspect_ratio=current_collection.thumbnail_aspect_ratio %} | {% include "common/components/file.html" with asset=asset site_context="gallery" aspect_ratio=current_collection.thumbnail_aspect_ratio %} | ||||
| {% endif %} | {% endif %} | ||||
| {% endfor %} | {% endfor %} | ||||
| {% endif %} | {% endif %} | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| {% endblock gallery_files %} | {% endblock gallery_files %} | ||||
| {% block scripts_footer %} | {% block scripts_footer %} | ||||
| <script> | <script> | ||||
| var $grid = $('.grid').masonry({ | var $grid = $('.grid').masonry({ | ||||
| Show All 13 Lines | |||||