1 module.exports = BackstageLayoutView;
3 var m = require('mithril');
5 function BackstageLayoutView() {
7 m('.navbar.navbar-default', {role: 'navigation'}, [
8 m('.container-fluid', [
10 m('button.navbar-toggle.collapsed',
11 {'data-toggle': 'collapse', 'data-target': '#navbar'},
12 [0,0,0].map(function() {
13 return m('span.icon-bar');
15 m("a.navbar-brand[href='/']", {config:m.route},
16 'Arvados::Backstage'),
18 m('#navbar.navbar-collapse.collapse', [
19 m('ul.nav.navbar-nav', [
21 m("a[href='/']", {config:m.route},
25 m('p.navbar-text', [siteBreadcrumb()]),
29 m('.container-fluid', this.views.content()),
31 function siteBreadcrumb() {
33 if (txt = m.route.param('connection'))
35 if ((txt = m.route.param('uuid')) && txt.substr(5,1)=='-')
36 return txt.substr(0,5);