Sourcecode in Day/actions.js:
1: function main_action() {
2: if (this._prototype == "Day" && !path.Site.preferences.getProperty("archive"))
3: res.redirect(path.Site.href());
4:
5: res.data.title = path.Site.title + ": ";
6: this.renderStorylist(parseInt(req.data.start, 10));
7: if (this._prototype == "Day") {
8: var ts = this.groupname.toDate("yyyyMMdd", this._parent.getTimeZone());
9: res.data.title += formatTimestamp(ts, "yyyy-MM-dd");
10: } else
11: res.data.title += this.groupname;
12: if (this._parent._prototype == "ImageTopicMgr")
13: res.data.body = this.renderSkinAsString("imagetopic");
14: else
15: res.data.body = this.renderSkinAsString("main");
16: path.Site.renderSkin("page");
17: return;
18: }
|