Skip to content

Commit fcdfe42

Browse files
committed
Amend
1 parent 5beb449 commit fcdfe42

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/subcommand/server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3734,7 +3734,7 @@ mod tests {
37343734
transaction: txid,
37353735
sat_ranges: None,
37363736
indexed: true,
3737-
inscriptions: None,
3737+
inscriptions: Some(Vec::new()),
37383738
outpoint: output,
37393739
runes: Some(
37403740
vec![(

templates/output.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
<h1>Output <span class=monospace>{{self.outpoint}}</span></h1>
22
<dl>
3-
%% if let Some(inscriptions) = &self.inscriptions {
3+
%% let inscriptions = self.inscriptions.clone().unwrap_or_default();
4+
%% if !inscriptions.is_empty() {
45
<dt>inscriptions</dt>
56
<dd class=thumbnails>
6-
%% for inscription in inscriptions {
7+
%% for inscription in &inscriptions {
78
{{Iframe::thumbnail(*inscription)}}
89
%% }
910
</dd>
1011
%% }
11-
%% if let Some(runes) = &self.runes {
12+
%% let runes = self.runes.clone().unwrap_or_default();
13+
%% if !runes.is_empty() {
1214
<dt>runes</dt>
1315
<dd>
1416
<table>
1517
<tr>
1618
<th>rune</th>
1719
<th>balance</th>
1820
</tr>
19-
%% for (rune, balance) in runes {
21+
%% for (rune, balance) in &runes {
2022
<tr>
2123
<td><a href=/rune/{{ rune }}>{{ rune }}</a></td>
2224
<td>{{ balance }}</td>

0 commit comments

Comments
 (0)