{% extends 'core_ui/base.html' %}
{% block content %}
<h2>All Uploaded Media</h2>
<ul>
  {% for image in images %}
  <li>
    <img src="{{ url_for('media.media_file', filename=image.file_url) }}" alt="{{ image.caption }}" width="200"><br>
    {{ image.caption or "No caption" }}
    {% if image.plant_id %}<br>Plant ID: {{ image.plant_id }}{% endif %}
    {% if image.growlog_id %}<br>GrowLog ID: {{ image.growlog_id }}{% endif %}
  </li>
  {% endfor %}
</ul>
{% endblock %}