Added change log

This commit is contained in:
Stefan Zermatten
2015-05-12 10:10:15 +02:00
parent a539b0bc6c
commit 80ca7307ce
6 changed files with 73 additions and 3 deletions

View File

@@ -23,6 +23,9 @@ Router.plugin("dataNotFound", {notFoundTemplate: "notFound"});
Router.map(function() {
this.route("/", {
name: "home",
onAfterAction: function() {
document.title = appName;
},
});
this.route("characterList", {
@@ -74,7 +77,20 @@ Router.map(function() {
},
});
this.route("/loginButtons", {
name: "loginButtons",
})
this.route("/changelog", {
name: "changeLog",
waitOn: function() {
return [
Meteor.subscribe("changeLog"),
]
},
data: {
changeLogs: function() {
return ChangeLogs.find({}, {sort: {version: -1}});
}
},
onAfterAction: function() {
document.title = appName;
},
});
});