Skip to content

Commit

Permalink
fix side block api link on the block view
Browse files Browse the repository at this point in the history
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
  • Loading branch information
ukane-philemon authored and chappjc committed Jun 6, 2024
1 parent 80898ad commit 1f13820
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/dcrdata/views/block.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
{{- else }}
<a class="fs13" href="/mempool">mempool </a>|
{{- end}}
{{if .MainChain}}
<a class="fs13" href="/api/block/{{.Height}}/verbose?indent=true" data-turbolinks="false">api</a>
{{- else}}
<a class="fs13" href="/api/block/hash/{{.Hash}}/verbose?indent=true" data-turbolinks="false">api</a>
{{- end}}
</div>
</div>
</div>
Expand Down

0 comments on commit 1f13820

Please sign in to comment.