Refactor view.

This commit is contained in:
Lars Jung 2015-04-25 13:24:34 +02:00
parent 0be36ea9e8
commit d5221c0d17
16 changed files with 421 additions and 161 deletions

View file

@ -0,0 +1,19 @@
modulejs.define('view/topbar', ['$', 'config', 'view/root'], function ($, config, root) {
var template =
'<div id="topbar">' +
'<div id="toolbar"/>' +
'<div id="crumbbar"/>' +
'<a id="backlink" href="http://larsjung.de/h5ai/" title="powered by h5ai ' + config.setup.VERSION + '">' +
'<div>powered</div>' +
'<div>by h5ai</div>' +
'</a>' +
'</div>';
var $el = $(template).appendTo(root.$el);
return {
$el: $el,
$toolbar: $el.find('#toolbar'),
$crumbbar: $el.find('#crumbbar')
};
});