From 4f114ba9ae1a34094e10e1c3ee2e0d8c8cd6ddf0 Mon Sep 17 00:00:00 2001 From: gerlofvanek Date: Mon, 26 Feb 2024 20:07:33 +0100 Subject: [PATCH] ui: Clean-up / Fixes / Updates - Moved parts of the svg code/images in style.html and update the templates. - Restyled and updated the JS for the cryptocurrency price boxes on the offers page. - Started on restyling the offers page. - Offers page, Posted timestamps are displayed as (X min ago) and Expires in -h min. - Fixed broken breadscrumb links. --- basicswap/templates/bids.html | 56 +-- basicswap/templates/header.html | 472 +++++++------------------ basicswap/templates/offers.html | 607 +++++++++++++++++--------------- basicswap/templates/style.html | 562 ++++++++++++++++++++++------- basicswap/ui/page_offers.py | 39 +- basicswap/ui/util.py | 2 +- 6 files changed, 958 insertions(+), 780 deletions(-) diff --git a/basicswap/templates/bids.html b/basicswap/templates/bids.html index 05b71b2..ddc44dd 100644 --- a/basicswap/templates/bids.html +++ b/basicswap/templates/bids.html @@ -201,7 +201,7 @@
Details
- + @@ -238,7 +238,7 @@ Accept - {% endif %} + {% endif %} {% endfor %} @@ -247,33 +247,35 @@ +
-
-
-
- -
-
-
-

Page: {{ filters.page_no }}

+
+
+ {% if filters.page_no > 1 %} +
+ +
+ {% endif %} +
+
+

Page: {{ filters.page_no }}

+
+
+ {% if bids_count > 10 %} +
+ +
+ {% endif %} +
-
-
- -
-
-
+
@@ -283,4 +285,4 @@ {% include 'footer.html' %} - \ No newline at end of file + diff --git a/basicswap/templates/header.html b/basicswap/templates/header.html index c939198..9e50ea9 100644 --- a/basicswap/templates/header.html +++ b/basicswap/templates/header.html @@ -1,3 +1,4 @@ +{% from 'style.html' import notifications_network_offer_svg, notifications_bid_accepted_svg, notifications_unknow_event_svg, notifications_new_bid_on_offer_svg, notifications_close_svg, swap_in_progress_mobile_svg, wallet_svg, page_back_svg, order_book_svg, new_offer_svg, settings_svg, asettings_svg, cog_svg, rpc_svg, debug_svg, explorer_svg, tor_svg, smsg_svg, outputs_svg, automation_svg, shutdown_svg, notifications_svg, debug_nerd_svg, wallet_locked_svg, mobile_menu_svg, wallet_unlocked_svg, tor_purple_svg, sun_svg, moon_svg, swap_in_progress_svg, available_bids_svg, your_offers_svg, bids_received_svg, bids_sent_svg, header_arrow_down_svg %} @@ -91,57 +92,34 @@
- + +
{% if ws_url %}