commit 47f483529ff235a0346d2c99a6d8a1e79dfc7e58
parent a700286b7c3ce04f69aa595fa1736d8669a7e5c3
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 13 Dec 2023 13:57:33 -0500
improve UI
Diffstat:
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/pkg/web/public/views/pages/poker.gohtml b/pkg/web/public/views/pages/poker.gohtml
@@ -4,12 +4,18 @@
<div class="container">
<div class="alert alert-warning mt-2 mb-2">WARNING: this is stagenet, do not send real XMR to that address</div>
<div class="mb-3">
- Xmr address <strong>(stagenet)</strong>: {{ if .Data.PokerXmrSubAddress }}<pre style="user-select: all; -webkit-user-select: all;">{{ .Data.PokerXmrSubAddress }}</pre>{{ else }}none{{ end }}
+ Xmr address <strong>(stagenet)</strong>:
+ {{ if .Data.PokerXmrSubAddress }}<pre style="user-select: all; -webkit-user-select: all;">{{ .Data.PokerXmrSubAddress }}</pre>{{ else }}none{{ end }}
</div>
<div class="mb-3">
- {{ if .Data.PokerXmrSubAddress }}
- <img src="data:image/png;base64,{{ .Data.Img }}" class="img-thumbnail" alt="" />
- {{ end }}
+ <div class="float-left mr-3">
+ {{ if .Data.PokerXmrSubAddress }}
+ <img src="data:image/png;base64,{{ .Data.Img }}" class="img-thumbnail" alt="" />
+ {{ end }}
+ </div>
+ 0.1xmr == 1000chips<br />
+ 7% house fee on withdraw.<br />
+ <div class="clearfix"></div>
</div>
<div class="mb-3">
Balance: {{ .Data.Balance }} chips
@@ -56,7 +62,7 @@
<tr>
<td>{{ .Amount | divide1T }}</td>
<td>{{ if .IsIn }}{{ .Confirmations }}{{ else }}-{{ end }}</td>
- <td>{{ .Processed | fmtBool }}</td>
+ <td>{{ if .IsIn }}{{ .Processed | fmtBool }}{{ else }}-{{ end }}</td>
<td>{{ if .IsIn }}IN{{ else }}OUT{{ end }}</td>
<td>{{ .CreatedAt.Format "Jan 02, 2006 15:04:05" }}</td>
</tr>