Semaphore/public/html/playbook/view.jade

15 lines
428 B
Plaintext
Raw Normal View History

mixin menuItem(state, name)
li(ng-class="{ active: $state.includes('#{state}') }"): a(ui-sref=state+"({ playbook_id: playbook.data._id })")= name
2014-08-25 01:02:34 +02:00
.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