aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/controllers/system.js
blob: f04ec6d38df1d581272f25bda3cadb1fda43bc89 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                  
                                           




                                   




                        


                                   












                                  











                                                                  





                                            



                                      
                                                                

 
                                         


                                                                         

/**
 * Module dependencies
 */





/**
 * Before the user log in
 * ===============================================================
*/

exports.index = function(req, res) {
    res.render('index', { title: 'DERS' });
    };



exports.test = function(req, res) {
    res.render('test', {
        title: 'test',
        loggedin: false
    });
};


exports.home = function(req, res) {
    res.render('home', {
        title: 'home',
        loggedin: false
    });
};


exports.faq = function(req, res) {
    res.render('faq', {
        title: 'faq',
        loggedin: false
    });
}




/**
 * After the user has logged in
 * ===============================================================
*/



exports.dashboard = function(req, res) {
    console.log('/dashboard - ' + req.user);
    res.render('dashboard', {
        title: 'kanin',
        loggedin: true
    });
};



exports.project = function(req, res) {
    res.render('project', { title: 'Harepus', loggedin: true });
}

exports.newProject = function(req, res) {
    res.render('newproject', { title: 'Nytt prosjekt', loggedin: true });
}