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:
@@ -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") : "";
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user