{% extends 'base.html' %}
{% from 'bootstrap5/pagination.html' import render_pagination %}
{% from 'macros.html' import photo_card %}
{% block title %}{{ user.name }}'s collection{% endblock %}
{% block content %}
{% include 'user/_header.html' %}
{% if user.public_collections or current_user == user %}
{% if collections %}
{% for collection in collections %}
{{ photo_card(collection.photo) }}
{% endfor %}
{% else %}