Semaphore/public/html/playbook/view.jade
Matej Kramny 0f180756ab Auth page
- Restructuring & co
2016-03-18 22:03:28 +00:00

15 lines
428 B
Plaintext

mixin menuItem(state, name)
li(ng-class="{ active: $state.includes('#{state}') }"): a(ui-sref=state+"({ playbook_id: playbook.data._id })")= name
.row
.col-sm-3.col-lg-2
ul.nav
h2.no-top-margin {{ playbook.data.name }}
+menuItem("playbook.tasks", "Tasks")
+menuItem("playbook.jobs", "Jobs")
+menuItem("playbook.hosts", "Hosts")
br
ul.nav
li: a(ui-sref="playbook.edit") Edit
.col-sm-9.col-lg-10
ui-view