-
Notifications
You must be signed in to change notification settings - Fork 84
/
bodybuilder.tmpl
110 lines (100 loc) · 4.22 KB
/
bodybuilder.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{{define "top"}}
<!DOCTYPE html>
<html lang="[[[Language]]]">
<head data-turbolinks-eval="false">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{- /* The above 2 meta tags *must* come first in the head; any other head content must come *after* these tags */ -}}
<link rel="icon" href="/img/favicon.png?v=AK4XS4">
<meta name="description" content="Decred DEX Client Web Portal">
<title>{{.Title}}</title>
<link href="/css/style.css?v=1yeumsqty" rel="stylesheet">
</head>
<body {{if .UserInfo.DarkMode}} class="dark"{{end}}>
<div class="popup-notes" id="popupNotes">
<span data-tmpl="note">
<div class="note-indicator d-inline-block" data-tmpl="indicator"></div>
<span data-tmpl="text"></span>
</span>
</div>
<div id="tooltip" class="flex-center"></div>
{{template "header" .}}
{{end}}
{{define "header"}}
<header id=header class="maintop">
{{$authed := .UserInfo.Authed}}
{{$marketsReady := and $authed (gt (len .UserInfo.Exchanges) 0)}}
<a href="/" class="logo-icon d-none d-md-block"></a>
<a href="/" class="logo-icon d-block d-md-none"></a>
<div id="headerSpace"></div>
<div class="mainlinks fs18 offwhite pe-2">
<a href="/markets" class="demi hoverbg{{if not $marketsReady}} d-hide{{end}}" id="marketsMenuEntry">[[[Markets]]]</a>
<a href="/wallets" class="demi hoverbg{{if not $authed}} d-hide{{end}}" id="walletsMenuEntry">[[[Wallets]]]</a>
<div class="d-inline-block position-relative hoverbg{{if not $authed}} d-hide{{end}}" id="noteBell">
<span class="ico-bell fs20 p-2"></span>
<div id="noteIndicator" class="d-hide"></div>
</div>
<div class="d-inline-block hoverbg position-relative" id="burgerIcon">
<span class="ico-hamburger fs20 p-2"></span>
</div>
</div>
<div id="loader" class="fill-abs flex-center d-hide">
<div class="ico-spinner spinner"></div>
<div id="loaderMsg" class="mx-2"></div>
</div>
<div id="noteBox" class="d-hide">
<div class="icon fs20 ico-bell p-1" id="innerNoteIcon"></div>
<div class="header d-flex align-items-center justify-content-start fs17 demi hoverbg px-3 py-2">
<div id="noteCat" class="active">[[[Notifications]]]</div>
<div id="pokeCat">[[[Recent Activity]]]</div>
</div>
<div id="noteList" class="flex-grow-1 stylish-overflow">
<div id="noteTmpl" class="note firstview p-2">
<div class="d-flex justify-content-center align-items-center px-1">
<div class="note-indicator d-inline-block me-2"></div>
<div class="note-subject flex-grow-1 d-inline-block fs16 demi"></div>
<span class="note-time pe-2"></span>
</div>
<div class="note-details fs15 px-3"></div>
</div>
</div>
<div id="pokeList" class="d-hide flex-grow-1 stylish-overflow">
<div id="pokeTmpl" class="note fs15 p-2">
<div class="d-flex justify-content-center align-items-center px-1">
<div class="flex-grow-1 d-inline-block fs16" data-tmpl="dateTime"></div>
<span class="note-time"></span>
</div>
<div class="fs15 px-1" data-tmpl="details"></div>
</div>
</div>
</div>
<div id="profileBox" class="d-hide">
<div class="icon fs20 ico-hamburger p-1" id="innerBurgerIcon"></div>
<div class="demi hoverbright pointer d-flex align-items-center py-1 authed-only" id="profileSignout">
<span class="ico-profile fs16 me-2"></span>
[[[Sign Out]]]
</div>
<span class="errcolor" id="logoutErr"></span>
<a href="/orders" class="demi hoverbright plainlink d-flex align-items-center py-1 authed-only">
<span class="ico-settings fs16 me-2"></span>
[[[Order History]]]
</a>
{{if .Experimental}}
<a href="/mm" class="demi hoverbright plainlink d-flex align-items-center py-1 authed-only">
<span class="ico-barchart fs16 me-2"></span>
[[[Market Making]]]
</a>
{{end}}
<a href="/settings" class="demi hoverbright plainlink d-flex align-items-center py-1">
<span class="ico-settings fs16 me-2"></span>
[[[Settings]]]
</a>
</div>
</header>
{{end}}
{{define "bottom"}}
<script src="/js/entry.js?v=qAsSUzx7"></script>
</body>
</html>
{{end}}