mirror of https://github.com/xwiki-labs/cryptpad
Add the profile app in template.js
This commit is contained in:
parent
8f2db44793
commit
40f4fc2682
|
@ -284,6 +284,10 @@ define([
|
|||
return h('div#container');
|
||||
};
|
||||
|
||||
Pages['/profile/'] = Pages['/profile/index.html'] = function () {
|
||||
return h('div#container');
|
||||
};
|
||||
|
||||
Pages['/register/'] = Pages['/register/index.html'] = function () {
|
||||
return [h('div#main', [
|
||||
h('div.mainOverlay'),
|
||||
|
|
|
@ -139,6 +139,8 @@ $(function () {
|
|||
require([ '/settings/main.js', ], function () {});
|
||||
} else if (/^\/user\//.test(pathname)) {
|
||||
require([ '/user/main.js'], function () {});
|
||||
} else if (/^\/profile\//.test(pathname)) {
|
||||
require([ '/profile/main.js'], function () {});
|
||||
} else if (/^\/register\//.test(pathname)) {
|
||||
require([ '/register/main.js' ], function () {});
|
||||
} else if (/^\/login\//.test(pathname)) {
|
||||
|
|
Loading…
Reference in New Issue