Skip to content

Commit

Permalink
Make rune parent clickable (ordinals#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Mar 25, 2024
1 parent 4990542 commit 066b06d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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>
<iframe .* src=/preview/{txid}i0></iframe>
.*<a.*<iframe .* src=/preview/{txid}i0></iframe></a>.*
<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>
<iframe .* src=/preview/0{64}i0></iframe>
.*<a href=/inscription/.*<iframe .* src=/preview/0{64}i0></iframe></a>.*
<dl>
<dt>number</dt>
<dd>25</dd>
Expand Down
4 changes: 3 additions & 1 deletion templates/rune.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<h1>{{ self.entry.spaced_rune }}</h1>
%% if let Some(parent) = self.parent {
{{Iframe::main(parent)}}
<div class=thumbnails>
{{Iframe::thumbnail(parent)}}
</div>
%% }
<dl>
<dt>number</dt>
Expand Down

0 comments on commit 066b06d

Please sign in to comment.