Skip to content

Commit

Permalink
Revert "Make rune parent clickable (ordinals#3358)"
Browse files Browse the repository at this point in the history
This reverts commit 04fe988.
  • Loading branch information
harutyunaraci authored Apr 2, 2024
1 parent bcdeca4 commit 802b52c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2796,7 +2796,7 @@ mod tests {
format!(
".*<title>Rune AAAAAAAAAAAAA</title>.*
<h1>AAAAAAAAAAAAA</h1>
.*<a.*<iframe .* src=/preview/{txid}i0></iframe></a>.*
<iframe .* src=/preview/{txid}i0></iframe>
<dl>
<dt>number</dt>
<dd>0</dd>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/rune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod tests {
}),
},
"<h1>B•CGDENLQRQWDSLRUGSNLBTMFIJAV</h1>
.*<a href=/inscription/.*<iframe .* src=/preview/0{64}i0></iframe></a>.*
<iframe .* src=/preview/0{64}i0></iframe>
<dl>
<dt>number</dt>
<dd>25</dd>
Expand Down
4 changes: 1 addition & 3 deletions templates/rune.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<h1>{{ self.entry.spaced_rune }}</h1>
%% if let Some(parent) = self.parent {
<div class=thumbnails>
{{Iframe::thumbnail(parent)}}
</div>
{{Iframe::main(parent)}}
%% }
<dl>
<dt>number</dt>
Expand Down

0 comments on commit 802b52c

Please sign in to comment.