fix missing start/end tags on templates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2023-05-27 13:18:17 +02:00
parent 71689792e6
commit 6936137b3c
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
5 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@ type BlocksPage struct {
{% if p.Miner == nil %}
<div style="text-align: center; font-weight: bold;">
{% if p.Refresh > 0 %}
<a href="/blocks">Autorefresh is ON ({%d p.Refresh %}} s)</a>
<a href="/blocks">Autorefresh is ON ({%d p.Refresh %} s)</a>
{% else %}
<a href="/blocks?refresh">Autorefresh is OFF</a>
{% endif %}

View file

@ -37,7 +37,7 @@ type MinerPage struct {
%}
{% func (p *MinerPage) Title() %}
{%= p.BasePage.Title() %} - Miner {{ p.Miner.Address.ToBase58() %}
{%= p.BasePage.Title() %} - Miner {%s p.Miner.Address.ToBase58() %}
{% endfunc %}
{% func (p *MinerPage) Content() %}

View file

@ -13,7 +13,7 @@ type PayoutsPage struct {
%}
{% func (p *PayoutsPage) Title() %}
{%= p.BasePage.Title() %} - Historical miner payouts {{ p.Miner.ToBase58() }}
{%= p.BasePage.Title() %} - Historical miner payouts {%s p.Miner.ToBase58() %}
{% endfunc %}
{% func (p *PayoutsPage) Content() %}

View file

@ -23,7 +23,7 @@ type SweepsPage struct {
{% if p.Miner == nil %}
<div style="text-align: center; font-weight: bold;">
{% if p.Refresh > 0 %}
<a href="/sweeps">Autorefresh is ON ({%d p.Refresh %}} s)</a>
<a href="/sweeps">Autorefresh is ON ({%d p.Refresh %} s)</a>
{% else %}
<a href="/sweeps?refresh">Autorefresh is OFF</a>
{% endif %}

View file

@ -75,9 +75,9 @@ type TransactionLookupPage struct {
<table class="center" style="max-width: calc(8em + 15em + 15em + 15em + 15em + 15em + 15em);">
<tr>
<td colspan="7">
<p><strong>Transaction Id:</strong> <a class="mono small" href="/t/{{ henc(p.TransactionId) %}">{%s hex(p.TransactionId) %}</a></p>
<p><strong>Transaction Id:</strong> <a class="mono small" href="/t/{%s henc(p.TransactionId) %}">{%s hex(p.TransactionId) %}</a></p>
{% code minerAddress := p.Miner.Address.ToBase58() %}
<p><strong>Miner Payout Address:</strong> <a href="/miner/{{ minerAddress %}"><span class="mono small">{%s minerAddress %}</span></a></p>
<p><strong>Miner Payout Address:</strong> <a href="/miner/{%s minerAddress %}"><span class="mono small">{%s minerAddress %}</span></a></p>
<p><strong>Likely:</strong> {% if p.LikelyMiner %}Yes{% else %}Not likely{% endif %}</p>
</td>
</tr>