Skip to content

Commit

Permalink
Remove paranthetical annotations (#2540)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Oct 17, 2023
1 parent df066d5 commit e724dfc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ mod tests {
<dt>id</dt>
<dd class=monospace>{inscription_id}</dd>
<dt>preview</dt>.*<dt>output</dt>
<dd><a class=monospace href=/output/0000000000000000000000000000000000000000000000000000000000000000:0>0000000000000000000000000000000000000000000000000000000000000000:0 \\(unbound\\)</a></dd>.*"
<dd><a class=monospace href=/output/0000000000000000000000000000000000000000000000000000000000000000:0>0000000000000000000000000000000000000000000000000000000000000000:0</a></dd>.*"
),
);
}
Expand Down Expand Up @@ -3381,7 +3381,7 @@ mod tests {
"/inscription/-1",
StatusCode::OK,
format!(
".*<h1>Inscription -1 \\(unstable\\)</h1>.*
".*<h1>Inscription -1</h1>.*
<dl>
<dt>id</dt>
<dd class=monospace>{cursed_inscription_id}</dd>.*"
Expand Down
6 changes: 3 additions & 3 deletions src/templates/inscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ mod tests {
timestamp: timestamp(0),
},
"
<h1>Inscription -1 \\(unstable\\)</h1>
<h1>Inscription -1</h1>
.*
<dl>
.*
<dt>location</dt>
<dd class=monospace>0{64}:0:0 \\(unbound\\)</dd>
<dd class=monospace>0{64}:0:0</dd>
<dt>output</dt>
<dd><a class=monospace href=/output/0{64}:0>0{64}:0 \\(unbound\\)</a></dd>
<dd><a class=monospace href=/output/0{64}:0>0{64}:0</a></dd>
.*
</dl>
"
Expand Down
10 changes: 0 additions & 10 deletions templates/inscription.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
%% if self.inscription_number >= 0 {
<h1>Inscription {{ self.inscription_number }}</h1>
%% } else {
<h1>Inscription {{ self.inscription_number }} (unstable)</h1>
%% }
<div class=inscription>
%% if let Some(previous) = self.previous {
<a class=prev href=/inscription/{{previous}}></a>
Expand Down Expand Up @@ -66,15 +62,9 @@ <h1>Inscription {{ self.inscription_number }} (unstable)</h1>
<dt>genesis transaction</dt>
<dd><a class=monospace href=/tx/{{ self.inscription_id.txid }}>{{ self.inscription_id.txid }}</a></dd>
<dt>location</dt>
%% if self.satpoint.outpoint == unbound_outpoint() {
<dd class=monospace>{{ self.satpoint }} (unbound)</dd>
<dt>output</dt>
<dd><a class=monospace href=/output/{{ self.satpoint.outpoint }}>{{ self.satpoint.outpoint }} (unbound)</a></dd>
%% } else {
<dd class=monospace>{{ self.satpoint }}</dd>
<dt>output</dt>
<dd><a class=monospace href=/output/{{ self.satpoint.outpoint }}>{{ self.satpoint.outpoint }}</a></dd>
%% }
<dt>offset</dt>
<dd>{{ self.satpoint.offset }}</dd>
%% if !self.children.is_empty() {
Expand Down

0 comments on commit e724dfc

Please sign in to comment.