From 7b504c26a9fbce73db9f361c7791f27cb0839e5e Mon Sep 17 00:00:00 2001 From: Arno Wunderlich <arno.a.wunderlich@student.jyu.fi> Date: Sat, 18 Feb 2023 13:13:19 +0000 Subject: [PATCH] image --- src/tjts5901/templates/auth/profile.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tjts5901/templates/auth/profile.html b/src/tjts5901/templates/auth/profile.html index fe47dc4c..47222284 100644 --- a/src/tjts5901/templates/auth/profile.html +++ b/src/tjts5901/templates/auth/profile.html @@ -2,7 +2,7 @@ {% block header %} <div class="container"> - <h1>{% block title %}{{user.email}}'s' Profile Page{% endblock %}</h1> + <h1>{% block title %}{{user.email}}'s Profile Page{% endblock %}</h1> </div> {% endblock %} @@ -35,11 +35,12 @@ <div class="card-deck"> {% for auction in items %} <div class="card"> - <img src="..." class="card-img-top" alt="..."> + <img src="data:image/png;base64,{{ auction.image_base64 }}" class="card-img-top" alt="No image available"> <div class="card-body"> <h5 class="card-title">{{ auction.title }}</h5> <p class="card-text">{{ auction.description }}</p> - <p class="card-text">Starting Bid: ${{ auction.starting_bid }}</p> + <p class="card-text">Starting Bid: {{ auction.starting_bid }} €</p> + <p class="card-text">Current Price: {{ auction.current_price }} €</p> </div> <div class="card-footer"> </div> -- GitLab