forked from dekkerglen/CubeCobra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.pug
155 lines (149 loc) · 6.64 KB
/
layout.pug
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
doctype html
- function get_cube_id(cube) {
- if (cube.urlAlias) return cube.urlAlias;
- if (cube.shortID) return cube.shortID;
- return cube._id;
- }
html
head
meta(charset='UTF-8')
meta(name='description', content='Build, Manage, and Playtest your Magic the Gathering cube!')
meta(name='keywords', content='MTG,Magic the Gathering,Magic,Cube,Cubing,Cube Management,Cube Draft')
meta(name='viewport', content='width=device-width, initial-scale=1')
if csrfToken
meta(name='csrf-token', content=csrfToken)
if metadata
for metadatum, i in metadata
if metadatum.name
meta(name=metadatum.name, content=metadatum.content)
if metadatum.property
meta(property=metadatum.property, content=metadatum.content)
link(rel='icon', href='/content/favicon.ico', type='image/x-icon')
title=title ? title + ' - Cube Cobra' : 'Cube Cobra'
link(rel='stylesheet' href='/bower_components/bootstrap/dist/css/bootstrap.css')
link(rel='stylesheet' href='/css/stylesheet.css')
#autocard_popup(style='position:absolute;z-index: 9999;')
#autocard_popup2(style='position:absolute;z-index: 9999;')
#autocard_popup_info(style='position:absolute;z-index: 9998;')
script(src='/bower_components/jquery/dist/jquery.js')
script(src='/jquery-ui/jquery-ui.min.js')
body
nav.navbar.navbar-expand-md.navbar-dark.bg-dark
.d-flex.flex-row.flex-nowrap.justify-content-between(style='flex: 1 1 auto; min-width: 0')
.overflow-hidden
a(href='/')
img(src="/content/banner.png" style='height: 45px; margin: 0 0' alt="Cube Cobra: a site for Magic: the Gathering Cubing")
button.navbar-toggler(type='button', data-toggle='collapse', data-target='#navbar', aria-controls='navbar', aria-expanded='false', aria-label='Toggle navigation')
span.navbar-toggler-icon
#navbar.collapse.navbar-collapse(style='flex: 10000 1 auto')
ul.navbar-nav.mr-auto
form(method='POST', action='/search').form-inline
input(type='hidden', name='_csrf', value=csrfToken)
.input-group.mt-2.mb-sm-2
input.form-control(width='300px' type='search', placeholder='Search', aria-label='Search', name='search')
.input-group-append
button.btn.btn-success(type='submit') Search
ul.navbar-nav
li.nav-item.dropdown
a#navbarDropdownMenuLink.nav-link.dropdown-toggle(href='#', role='button', data-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
| About
.dropdown-menu(aria-labelledby='navbarDropdownMenuLink')
a.dropdown-item(href='/tool/topcards') Top Cards
a.dropdown-item(href='/contact') Contact
a.dropdown-item(href='/dev/blog') Dev Blog
a.dropdown-item(href='/ourstory') Our Story
a.dropdown-item(href='/faq') FAQ
a.dropdown-item(href='/donate') Donate
if user
li.nav-item
a.nav-link.d-none.d-lg-block(href="#", data-toggle='modal', data-target='#cubeModal') New Cube
li.nav-item
a.nav-link(href="/user/view/"+user.id)
span.d-none.d-lg-inline Your
| Profile
li.nav-item.dropdown
a#navbarDropdownMenuLink.nav-link.dropdown-toggle(href='#', role='button', data-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
| #{user.username}
.dropdown-menu.dropdown-menu-right(aria-labelledby='navbarDropdownMenuLink')
a.dropdown-item(href='/user/account') Account Information
a.dropdown-item(href='/user/account/changepassword') Change Password
a.dropdown-item(href='/user/account/updateemail') Update Email
a.dropdown-item(href='/user/logout') Logout
else
li.nav-item
a.nav-link(href='/user/register') Register
li.nav-item
a(href='/user/login').login-link.nav-link Login
.container
block content
br
hr
footer
p.center(style='text-align: center; font-size:12px')
a Magic: The Gathering is ©
a(href='https://company.wizards.com/') Wizards of the Coast
a . Cube Cobra is not affiliated nor produced nor endorsed by Wizards of the Coast.
br
a All card images, mana symbols, expansions and art related to Magic the Gathering is a property of Wizards of the Coast/Hasbro.
br
a This site is not affiliated nor endorsed by Scryfall LLC. This site endeavours to adhere to the Scryfall data guidelines.
br
a Custom card images displayed in Cube Cobra are subject to the license terms under which they were uploaded to their hosts.
br
a Cube Cobra is not responsible for the content of custom card images.
br
a To report a custom card image violation, message the development team on
a(href='https://discord.gg/Hn39bCU') Discord.
br
a All other content Copyright © 2019 Cube Cobra
br
a(href='/privacy') Privacy Privacy
a |
a(href='/tos') Terms and Conditions
a |
a(href='/cookies') Cookies Policy
script(src='/bower_components/bootstrap/dist/js/bootstrap.js')
script(src='/js/main.js')
script(src='/js/autocard.js')
// Login modal
#loginModal.modal.fade(tabindex='-1', role='dialog', aria-labelledby='loginModalLabel', aria-hidden='true')
.modal-dialog(role='document')
.modal-content
form(method='POST', action='/user/login')
input(type='hidden', name='_csrf', value=csrfToken)
.modal-header
h5#loginModalLabel.modal-title Login
button.close(type='button', data-dismiss='modal', aria-label='Close')
span(aria-hidden='true') ×
.modal-body
.form-group
label.col-form-label Username or Email Address:
input#username.form-control(name='username', type='text')
.form-group
label.col-form-label Password:
input#password.form-control(name='password', type='password')
a(href='/user/lostpassword') Forgot password?
if loginCallback
input(type='hidden', name='loginCallback', value=loginCallback)
br
.modal-footer
input.btn.btn-success(type='submit',value='Login')
button.btn.btn-secondary(type='button', data-dismiss='modal') Close
// Add cube modal
#cubeModal.modal.fade(tabindex='-1', role='dialog', aria-labelledby='cubeModalLabel', aria-hidden='true')
.modal-dialog(role='document')
.modal-content
form(method='POST', action='/cube/add')
input(type='hidden', name='_csrf', value=csrfToken)
.modal-header
h5#loginModalLabel.modal-title Create New Cube
button.close(type='button', data-dismiss='modal', aria-label='Close')
span(aria-hidden='true') ×
.modal-body
.form-group
label.col-form-label Cube Name:
input.form-control(name='name', type='text')
br
.modal-footer
input.btn.btn-success(type='submit',value='Create')
button.btn.btn-secondary(type='button', data-dismiss='modal') Close