
module.exports = function(app) {

  app.locals.moment = require('moment');
  app.locals.md = require('markdown').markdown.toHTML;

  app.locals.isLeader = function(user, project) {
    return (user.is_admin || user.id === project.leader);
  };

  require('./site')(app);
  require('./api')(app);
  require('./admin')(app);

};

@@ -196,14 +196,14 @@
 ser.
-is_
 adm
+in_
 in %7C

is_admin to admin_in