-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathedit.jade
More file actions
43 lines (41 loc) · 1.5 KB
/
edit.jade
File metadata and controls
43 lines (41 loc) · 1.5 KB
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
extends program
append top
- if(current == 'edit')
h1 #{title}
small by #{author}
blockquote
#{description}
div.btn-group
button#info.btn.btn-info(data-toggle="button")
i.icon-chevron-down.icon-white
span Post Options
button.btn.btn-info(data-toggle="dropdown")
i.icon-list.icon-white
span#assembler-btn 0x10code
ul.dropdown-menu.pull-right(role="menu")
li
a#0x10code(tabindex=-1, href="#") 0x10code
a#dcputoolchain(tabindex=-1, href="#") DCPU-16 Toolchain
button#save.btn.btn-info
i.icon-share.icon-white
span Post
prepend left
div#saveAlert.alert.alert-error(style="display:none")
strong Oh no!
span An error occurred while trying to save your code. :(
div#savePanel.collapse.inset(style="display:none")
div.spacer
div.input-prepend
span.add-on: i.icon-font
input#saveTitle.span3(type="text", placeholder="title (optional)")
div.input-prepend
span.add-on: i.icon-user
input#saveAuthor.span3(type="text", placeholder="author (optional)")
textarea#saveDescription.span4(rows="6", placeholder="description, in markdown format (optional)")
div.input-prepend
span.add-on: i.icon-lock
input#savePassword.span2(type="password", placeholder="password (optional)")
- if(typeof id !== 'undefined')
input#saveId(type="hidden", value="#{id}")
- if(current === 'fork')
input#saveFork(type="hidden", value="#{fork}")