2020-12-27 01:33:07 +01:00
|
|
|
{% extends 'index.html' %}
|
|
|
|
{% load static %}
|
|
|
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
|
|
|
|
|
|
|
{% block content %}
|
2021-01-17 17:10:04 +01:00
|
|
|
{% if active_offers_list %}
|
|
|
|
{% for Offer in active_offers_list %}
|
|
|
|
|
|
|
|
<a href ="{{ Offer.get_absolute_url}}"> <h1> {{ Offer.title}} </h1> </a>
|
|
|
|
{{ Offer.category }} {{ Offer.price }} {{ Offer.created_by }}
|
|
|
|
|
|
|
|
{% for photo in Offer.images.all %}
|
|
|
|
{% if photo.main_image == True%}
|
|
|
|
<img src="{{ photo.image.url }}" width = 300px>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
2020-12-27 01:33:07 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|