page-header.js 364 B

1234567891011121314151617181920
  1. (function (Misago) {
  2. 'use strict';
  3. var header = {
  4. view: function(ctrl, options) {
  5. return m('.page-header',
  6. m('.container', [
  7. m('h1', options.title),
  8. ])
  9. );
  10. }
  11. };
  12. Misago.addService('component:header', function(_) {
  13. _.component('header', header);
  14. },
  15. {
  16. after: 'components'
  17. });
  18. }(Misago.prototype));