mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Refactor view.
This commit is contained in:
parent
0be36ea9e8
commit
d5221c0d17
16 changed files with 421 additions and 161 deletions
19
src/_h5ai/client/js/inc/view/topbar.js
Normal file
19
src/_h5ai/client/js/inc/view/topbar.js
Normal 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')
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue