2018-08-14 10:56:12 -07:00
|
|
|
|
2018-12-12 11:04:00 -08:00
|
|
|
import './InternshipJobs.html';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tracker.autorun(function() {
|
|
|
|
|
Meteor.subscribe("Internship");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Template.InternshipJobs.onCreated(function() {
|
2019-01-07 16:53:54 -08:00
|
|
|
//this.internships = Meteor.collections.Internship.find({}, {sort: {name: 1}});
|
2018-12-12 11:04:00 -08:00
|
|
|
});
|
|
|
|
|
Template.InternshipJobs.helpers({
|
|
|
|
|
internships: function() {
|
2019-01-07 16:53:54 -08:00
|
|
|
//return Template.instance().internships;
|
|
|
|
|
return Meteor.collections.Internship.find({}, {sort: {name: 1}});
|
2018-12-12 11:04:00 -08:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
Template.InternshipJobs.events({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Template.InternshipJob.onCreated(function() {
|
|
|
|
|
});
|
|
|
|
|
Template.InternshipJob.helpers({
|
|
|
|
|
internship: function() {
|
|
|
|
|
let id = FlowRouter.getParam('_id');
|
|
|
|
|
return Meteor.collections.Internship.findOne(id);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
Template.InternshipJob.events({
|
|
|
|
|
});
|