<div style="clear:both"></div>
<div fnpjs-place="mainView">
</div>
- <div fnpjs-place="bottomPanel"></div>
+ <div fnpjs-place="bottomPanel"<% if(tutorial) { %> data-toggle="tutorial" data-tutorial="<%= tutorial.index %>" data-placement="top" data-content="<%= tutorial.text %>"<% } %>></div>
</div>
\ No newline at end of file
var views = {
- mainLayout: new layout.Layout(mainLayoutTemplate),
+ mainLayout: new layout.Layout(mainLayoutTemplate, sandbox.getTutorialItem('statusBar')),
mainTabs: (new tabs.View()).render(),
visualEditing: new layout.Layout(visualEditingLayoutTemplate),
diffLayout: new layout.Layout(diffLayoutTemplate)
define(['libs/jquery', 'libs/underscore'], function($ ,_) {
'use strict';
- var Layout = function(template) {
+ var Layout = function(template, tutorial) {
var layout = this;
- this.dom = $(_.template(template)());
+ this.dom = $(_.template(template)({tutorial: tutorial}));
this.views = {};
this.dom.onShow = function() {