From 03468a6546cbda55b60ac0be29a68491b5209cba Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 22 Nov 2023 14:18:14 -0800 Subject: [PATCH] Use icons in nav bar (#2722) --- src/subcommand/server.rs | 19 ++++++------------- src/templates.rs | 17 +++++++++-------- src/templates/home.rs | 10 +++------- src/templates/inscriptions.rs | 4 ++-- static/book.svg | 1 + static/clock.svg | 1 + static/cubes.svg | 1 + static/diagram-project.svg | 1 + static/discord.svg | 1 + static/gem.svg | 1 + static/github.svg | 1 + static/images.svg | 1 + static/index.css | 26 ++++++++++++++++++-------- static/magnifying-glass.svg | 1 + templates/home.html | 8 +------- templates/inscriptions.html | 2 +- templates/page.html | 19 +++++++++++-------- tests/server.rs | 2 +- 18 files changed, 61 insertions(+), 55 deletions(-) create mode 100644 static/book.svg create mode 100644 static/clock.svg create mode 100644 static/cubes.svg create mode 100644 static/diagram-project.svg create mode 100644 static/discord.svg create mode 100644 static/gem.svg create mode 100644 static/github.svg create mode 100644 static/images.svg create mode 100644 static/magnifying-glass.svg diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index d458b0f8f7..29c0338602 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -2741,13 +2741,7 @@ mod tests { StatusCode::OK, format!( r".*Ordinals.* - +

Latest Inscriptions

.* (.*\s*){{99}} @@ -2789,7 +2783,7 @@ mod tests { TestServer::new_with_regtest().assert_response_regex( "/", StatusCode::OK, - ".*Ordinalsregtest.*", + ".*Ordinalsregtest.*", ); } @@ -2962,9 +2956,8 @@ mod tests { "/", StatusCode::OK, ".* - Clock - rare.txt -
.*", + .* + .*.*", ); } @@ -2983,8 +2976,8 @@ mod tests { "/", StatusCode::OK, ".* - Clock - .*", + .* +
-
@@ -167,7 +168,7 @@ mod tests { domain: None, index_sats: true, })), - r".*