{% from "_pagination.html" import render_pagination %} {% macro slides_grid(slides, controller) %} {{ render_pagination(slides, controller, view=slide_view, **kwargs) }}
{% if slide_view == 'grid' %} Grid View List View {% else %} Grid View List View {% endif %}
{% if slide_view == 'grid' %} {% for slide in slides.items %} {% endfor %} {% else %}{% if slide.renditions.macro_small %} {{ slide.slide_name }} {% else %} {{ slide.slide_name }} {% endif %} | {% if slide.renditions['macro_small'] %} Preview {% endif %} {% if slide.is_available() %} {% if slide.renditions.original %} Download {% endif %} {% if slide.renditions.viewer_dzi %} View {% endif %} {% if slide.is_viewable() %} {% if slide.share_code %} Revoke Sharing Copy Sharing URL {% else %} Share {% endif %} {% endif %} {% elif slide.is_archived() %} Restore {% elif slide.is_restoring() %} Restoration in progress. {% endif %} |