consensus/cmd/web/views/share.qtpl
DataHoarder 55661a12da
All checks were successful
continuous-integration/drone/push Build is passing
WIP: Bootstrap-based responsive interface, CSS only
2024-03-20 13:37:26 +01:00

28 lines
834 B
Plaintext

{% import "git.gammaspectra.live/P2Pool/p2pool-observer/cmd/index" %}
{% import "git.gammaspectra.live/P2Pool/p2pool-observer/p2pool/sidechain" %}
{% code
type SharePage struct {
// inherit from base page, so its' title is used in error page.
BasePage
Block *index.SideBlock
PoolBlock *sidechain.PoolBlock
Payouts <-chan *index.Payout
CoinbaseOutputs index.MainCoinbaseOutputs
SweepsCount int
Sweeps [][]*index.MainLikelySweepTransaction
}
func (p *SharePage) Name() string {
return "share"
}
%}
{% func (p *SharePage) Title() %}
{%= p.BasePage.Title() %} - Share Height {%dul p.Block.SideHeight %}
{% endfunc %}
{% func (p *SharePage) Content() %}
{%= TemplatePoolBlockWithSideBlock(p.Context(), p.PoolBlock, "Share information", true, p.Block, p.Payouts, p.CoinbaseOutputs, p.SweepsCount, p.Sweeps) %}
{% endfunc %}