{% extends 'base.html' %}

{% block title %} My Images {% endblock %}

{% block content %}
{% if user.is_authenticated %}
  Hi {{ user.username }}!<br>

  {% for image in images %}
  <img src="/media/images/{{ id }}/{{ image }}" style="max-width:500px"/>
  {% endfor %}


{% else %}
  <p>You are not logged in</p>
  <a href="{% url 'login' %}">Log In</a>
{% endif %}
{% endblock %}
