-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.app
50 lines (45 loc) · 966 Bytes
/
template.app
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
module template
define main() {
includeCSS("bootstrap/css/bootstrap.css")
includeCSS("bootstrap/css/bootstrap-adapt.css")
includeCSS("bootstrap/css/bootstrap-responsive.css")
includeJS("jquery.js")
includeJS("bootstrap/js/bootstrap.js")
includeCSS("qa.css")
navigationbar
gridContainer[id="maincontainer"]{
gridRow{
gridSpan(12){
messages
}
}
elements
}
}
define navigationbar() {
navbar{
navigate root() [class="brand"]{ "Q&A" }
navItems{
listitem{ navigate root(){ "Home" } }
}
pullRight{
navItems{
signInOut
}
}
}
}
override template templateSuccess(messages : List<String>){
if(messages.length > 0){
alert{
for(ve: String in messages){
block{
text(ve)
}
}
}
}
}
template verticalSpace(){
div[style="height: 20px;"]
}