<h1>Output <span class=monospace>{{self.outpoint}}</span></h1>
<dl>
%% if let Some(inscriptions) = self.inscriptions.as_ref().filter(|inscriptions| !inscriptions.is_empty()) {
  <dt>inscriptions</dt>
  <dd class=thumbnails>
%% for inscription in inscriptions {
    {{Iframe::thumbnail(*inscription)}}
%% }
  </dd>
%% }
%% if let Some(runes) = self.runes.as_ref().filter(|runes| !runes.is_empty()) {
  <dt>runes</dt>
  <dd>
    <table>
      <tr>
        <th>rune</th>
        <th>balance</th>
      </tr>
%% for (rune, balance) in runes {
      <tr>
        <td><a href=/rune/{{ rune }}>{{ rune }}</a></td>
        <td>{{ balance }}</td>
      </tr>
%% }
    </table>
  </dd>
%% }
  <dt>value</dt><dd>{{ self.output.value.to_sat() }}</dd>
  <dt>script pubkey</dt><dd class=monospace>{{ self.output.script_pubkey.to_asm_string() }}</dd>
%% if let Ok(address) = self.chain.address_from_script(&self.output.script_pubkey ) {
  <dt>address</dt><dd><a class=collapse href=/address/{{address}}>{{ address }}</a></dd>
%% }
  <dt>transaction</dt><dd><a class=collapse href=/tx/{{ self.outpoint.txid }}>{{ self.outpoint.txid }}</a></dd>
  <dt>confirmations</dt><dd>{{ self.confirmations }}</dd>
  <dt>spent</dt><dd>{{ self.spent }}</dd>
</dl>
%% if let Some(sat_ranges) = &self.sat_ranges {
<h2>{{"Sat Range".tally(sat_ranges.len())}}</h2>
<ul class=monospace>
%% for (start, end) in sat_ranges {
%% let value = end - start;
%% let last = end - 1;
%% if value == 1 {
  <li><a href=/sat/{{start}} class={{Sat(*start).rarity()}}>{{start}}</a></li>
%% } else {
  <li><a href=/sat/{{start}} class={{Sat(*start).rarity()}}>{{start}}</a>-<a href=/sat/{{last}} class=common>{{last}}</a> ({{value}} sats)</li>
%% }
%% }
</ul>
%% }
