From 9ea16619668009e6f008a25e5e6715d1dc7ff1be Mon Sep 17 00:00:00 2001 From: Michael Drury <mpdrury15@gmail.com> Date: Fri, 28 Apr 2023 18:21:55 +0100 Subject: [PATCH] made the header photo a link --- shop/templates/cart.html | 2 +- shop/templates/layout.html | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/shop/templates/cart.html b/shop/templates/cart.html index 1e35e85..a1bb631 100644 --- a/shop/templates/cart.html +++ b/shop/templates/cart.html @@ -42,7 +42,7 @@ {% endif %} {% if cart_size > 0: %} - <p class = "total_price">Total price: {{ total_price }}</p> + <p class = "total_price">Total price: £{{ total_price }}</p> {% endif %} {% for item in cart_list %} diff --git a/shop/templates/layout.html b/shop/templates/layout.html index e7fbac8..20b7445 100644 --- a/shop/templates/layout.html +++ b/shop/templates/layout.html @@ -28,14 +28,16 @@ <div id="page-container"> - <div class="header"> - <img class="header_img" - src="{{ url_for('static', filename='images/dark_logo.png') }}" - onmouseover="this.src='{{ url_for('static', filename='images/dark_logo_orange.png') }}'" - onmouseout="this.src='{{ url_for('static', filename='images/dark_logo.png') }}'" - alt="logo image" /> -</div> + <a href="{{ url_for('home') }}"> + <img class="header_img" + src="{{ url_for('static', filename='images/dark_logo.png') }}" + onmouseover="this.src='{{ url_for('static', filename='images/dark_logo_orange.png') }}'" + onmouseout="this.src='{{ url_for('static', filename='images/dark_logo.png') }}'" + alt="logo image" /> + </a> + </div> + <ul class = "navbar"> <li><div class = "navbar_box_home"><a class = "navbar_item" href="{{ url_for('home') }}">Home</a></div></li> <li><div class = "navbar_box"><a class = "navbar_item" href="{{ url_for('shopping') }}">Shopping</a></div></li> -- GitLab