Changed Appreciation to Jr High Summer; Fixed sorting of internships such that changes get properly sorted; Added a proper date on news & notices on the home page using the page's update timestamp.

This commit is contained in:
Wynne Crisman
2019-01-07 16:53:54 -08:00
parent 0593c2421a
commit cac2ad9c41
21 changed files with 160 additions and 109 deletions

View File

@@ -1,6 +1,10 @@
import './Home.html';
Tracker.autorun(function() {
Meteor.subscribe("pages");
});
Template.Home.events({
'mouseenter .menuTile': function (event, template) {
event.preventDefault();
@@ -11,3 +15,11 @@ Template.Home.events({
$(event.target).find(".menuHeaderBackground").hide();
}
});
Template.Home.helpers({
newsDate: function() {
let news = Meteor.collections.Pages.findOne({name: "News"});
let date = news ? news.updatedAt : undefined;
return date ? moment(date).format("MM / DD / YY") : "";
}
});