Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Dec 20, 2024
1 parent 5beb449 commit fcdfe42
Show file tree
Hide file tree
Showing 2 changed files with 7 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 @@ -3734,7 +3734,7 @@ mod tests {
transaction: txid,
sat_ranges: None,
indexed: true,
inscriptions: None,
inscriptions: Some(Vec::new()),
outpoint: output,
runes: Some(
vec![(
Expand Down
10 changes: 6 additions & 4 deletions templates/output.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
<h1>Output <span class=monospace>{{self.outpoint}}</span></h1>
<dl>
%% if let Some(inscriptions) = &self.inscriptions {
%% let inscriptions = self.inscriptions.clone().unwrap_or_default();
%% if !inscriptions.is_empty() {
<dt>inscriptions</dt>
<dd class=thumbnails>
%% for inscription in inscriptions {
%% for inscription in &inscriptions {
{{Iframe::thumbnail(*inscription)}}
%% }
</dd>
%% }
%% if let Some(runes) = &self.runes {
%% let runes = self.runes.clone().unwrap_or_default();
%% if !runes.is_empty() {
<dt>runes</dt>
<dd>
<table>
<tr>
<th>rune</th>
<th>balance</th>
</tr>
%% for (rune, balance) in runes {
%% for (rune, balance) in &runes {
<tr>
<td><a href=/rune/{{ rune }}>{{ rune }}</a></td>
<td>{{ balance }}</td>
Expand Down

0 comments on commit fcdfe42

Please sign in to comment.