20 lines
656 B
HTML
20 lines
656 B
HTML
{% extends 'index.html' %}
|
|
{% load static %}
|
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
|
|
|
{% block content %}
|
|
{% 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 %}
|
|
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endblock %} |