From 10095b90865705e86b8c13cef201bc975cee4f0b Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Thu, 24 Oct 2024 15:43:38 -0700 Subject: [PATCH] Move the child totalizer to the `all` link. --- src/subcommand/server.rs | 4 ++-- src/templates/inscription.rs | 8 ++++---- templates/inscription.html | 4 ++-- tests/wallet/inscribe.rs | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 7e3ad433ac..8a58f85784 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -5210,7 +5210,7 @@ next server.assert_response_regex( format!("/inscription/{parent_inscription_id}"), StatusCode::OK, - format!(".*Inscription 0.*
children \\(1\\)
.*.*.*"), + format!(".*Inscription 0.*
children
.*.*.*"), ); assert_eq!( @@ -5377,7 +5377,7 @@ next .*.* .*.*
- all + all \\(5\\)
.*" ), ); diff --git a/src/templates/inscription.rs b/src/templates/inscription.rs index 69354cc463..b0d2a00871 100644 --- a/src/templates/inscription.rs +++ b/src/templates/inscription.rs @@ -286,14 +286,14 @@ mod tests {
-
children \\(2\\)
+
children
id
@@ -349,13 +349,13 @@ mod tests {
-
children \\(1\\)
+
children
id
diff --git a/templates/inscription.html b/templates/inscription.html index db973876ff..183481f996 100644 --- a/templates/inscription.html +++ b/templates/inscription.html @@ -27,7 +27,7 @@

Inscription {{ self.number }}

%% } %% if !self.children.is_empty() { -
children ({{ self.child_count }})
+
children
%% for id in &self.children { @@ -35,7 +35,7 @@

Inscription {{ self.number }}

%% }
%% } diff --git a/tests/wallet/inscribe.rs b/tests/wallet/inscribe.rs index da663ee34e..d4adccfddd 100644 --- a/tests/wallet/inscribe.rs +++ b/tests/wallet/inscribe.rs @@ -635,7 +635,7 @@ fn inscribe_with_parent_inscription_and_fee_rate() { ord.assert_response_regex( format!("/inscription/{}", child_output.parents.first().unwrap()), format!( - ".*
children \\(1\\)
.*.*", + ".*
children
.*
.*", child_output.inscriptions[0].id ), );