/main_action
main action

Sourcecode in Site/actions.js:
1:   function main_action() {
2:      if (this.allstories.size() == 0) {
3:         res.data.body = this.renderSkinAsString("welcome");
4:         if (session.user) {
5:            if (session.user == this.creator)
6:               res.data.body += this.renderSkinAsString("welcomeowner");
7:            if (session.user.sysadmin)
8:               res.data.body += this.renderSkinAsString("welcomesysadmin");
9:         }
10:     } else {
11:        this.renderStorylist(req.data.day);
12:        res.data.body = this.renderSkinAsString("main");
13:     }
14:     res.data.title = this.title;
15:     this.renderSkin("page");
16:     logAccess();
17:     return;
18:  }