/
pageinner.jade
41 lines (41 loc) · 1.63 KB
/
pageinner.jade
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
block pageinner
if menus.left || regions.left
div.left(class=classes.left, class="span#{grid.left}")
if menus.left
.well.menu
ul.nav.nav-list
for link, path in menus.left
li(class=(link.childrens && 'nav-header'))
//- li.nav-header= category
a(href=path, class=(path == current && 'active'))= link.title
if link.childrens
ul
for childLink, childPath in link.childrens
li
a(href=childPath, class=(childPath == current && 'active'))= childLink.title
if regions.left
- for content, className in regions.left
div(class=className)!= content
div(class=classes.content, class="span#{grid.content}")
block content
block title
h1.page-title= (title ? title : site_name)
include messages
block content_inner
if menus.right || regions.right
div.right(class=classes.right, class="span#{grid.right}")
if menus.right
.well.menu
ul.nav.nav-list
for link, path in menus.right
li(class=(link.childrens && 'nav-header'))
//- li.nav-header= category
a(href=path, class=(path == current && 'active'))= link.title
if link.childrens
ul
for childLink, childPath in link.childrens
li
a(href=childPath, class=(childPath == current && 'active'))= childLink.title
if regions.right
- for content, className in regions.right
div(class=className)!= content