41 lines
1.6 KiB
HTML
41 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{{.Title}}</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;">
|
|
<h1 style="margin: 0;">🤖 AI Trading Dashboard</h1>
|
|
<div id="mode-banner" class="mode-banner mode-dryrun"></div>
|
|
</div>
|
|
|
|
<div class="tabs">
|
|
<a href="/overview" class="tab{{if eq .CurrentPage "overview"}} active{{end}}" data-page="overview">Overview</a>
|
|
<a href="/trades" class="tab{{if eq .CurrentPage "trades"}} active{{end}}" data-page="trades">Trades</a>
|
|
<a href="/whitelist" class="tab{{if eq .CurrentPage "whitelist"}} active{{end}}" data-page="whitelist">Whitelist</a>
|
|
<a href="/news" class="tab{{if eq .CurrentPage "news"}} active{{end}}" data-page="news">News</a>
|
|
</div>
|
|
|
|
<div id="content">
|
|
{{if eq .CurrentPage "overview"}}
|
|
{{template "overview-content" .}}
|
|
{{else if eq .CurrentPage "trades"}}
|
|
{{template "trades-content" .}}
|
|
{{else if eq .CurrentPage "whitelist"}}
|
|
{{template "whitelist-content" .}}
|
|
{{else if eq .CurrentPage "news"}}
|
|
{{template "news-content" .}}
|
|
{{else}}
|
|
{{template "overview-content" .}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
<script>window.initialPage = "{{.CurrentPage}}";</script>
|
|
<script src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|