12345678910111213141516171819202122 |
- _.each(['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'],
- function(routeName) {
- AccountsTemplates.configureRoute(routeName, {
- layoutTemplate: 'userFormsLayout'
- });
- });
- Router.route('/profile/:username', {
- name: 'Profile',
- template: 'profile',
- waitOn: function() {
- return Meteor.subscribe('profile', this.params.username);
- },
- data: function() {
- var params = this.params;
- return {
- profile: function() {
- return Users.findOne({ username: params.username });
- }
- };
- }
- });
|