Skip to content

Commit

Permalink
Dispaly rune ID above height and index (ordinals#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 18, 2023
1 parent 976e90e commit f091852
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2249,12 +2249,12 @@ mod tests {
<h1>AAAAAAAAAAAAA</h1>
<iframe .* src=/preview/{txid}i0></iframe>
<dl>
<dt>id</dt>
<dd>2/1</dd>
<dt>number</dt>
<dd>0</dd>
<dt>timestamp</dt>
<dd><time>1970-01-01 00:00:02 UTC</time></dd>
<dt>id</dt>
<dd>2/1</dd>
<dt>etching block height</dt>
<dd><a href=/block/2>2</a></dd>
<dt>etching transaction index</dt>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/rune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ mod tests {
"<h1>B•CGDENLQRQWDSLRUGSNLBTMFIJAV</h1>
<iframe .* src=/preview/0{64}i0></iframe>
<dl>
<dt>id</dt>
<dd>10/9</dd>
<dt>number</dt>
<dd>25</dd>
<dt>timestamp</dt>
<dd><time>1970-01-01 00:00:00 UTC</time></dd>
<dt>id</dt>
<dd>10/9</dd>
<dt>etching block height</dt>
<dd><a href=/block/10>10</a></dd>
<dt>etching transaction index</dt>
Expand Down
4 changes: 2 additions & 2 deletions templates/rune.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ <h1>{{ self.entry.spaced_rune() }}</h1>
{{Iframe::main(parent)}}
%% }
<dl>
<dt>id</dt>
<dd>{{ self.id }}</dd>
<dt>number</dt>
<dd>{{ self.entry.number }}</dd>
<dt>timestamp</dt>
<dd><time>{{ timestamp(self.entry.timestamp) }}</time></dd>
<dt>id</dt>
<dd>{{ self.id }}</dd>
<dt>etching block height</dt>
<dd><a href=/block/{{ self.id.height }}>{{ self.id.height }}</a></dd>
<dt>etching transaction index</dt>
Expand Down

0 comments on commit f091852

Please sign in to comment.