fipamo/brain/views/navigation.pug

17 lines
795 B
Text
Raw Normal View History

extends frame
block main-content
#nav-index
#nav-index-wrapper
#nav-pages
- var index = 0;
2019-11-29 22:43:55 +01:00
- for ( index; index < menu.length; index++)
.nav-item(id=menu[index].id, data-slug=menu[index].slug, data-uuid=menu[index].uuid, data-path=menu[index].path)
svg#item-arrows(viewBox="0 0 20 20" class="icons")
2019-11-29 22:43:55 +01:00
use(xlink:href='/assets/images/global/sprite.svg#entypo-select-arrows')
label
2019-11-29 22:43:55 +01:00
= menu[index].title
#nav-btns
2019-11-29 22:43:55 +01:00
button.nav-btn#edit-item(data-id=menu[index].uuid) EDIT
button.nav-btn#remove-item(data-id=menu[index].id) REMOVE