Skip to content

Instantly share code, notes, and snippets.

@jelenajjo
Created November 5, 2014 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelenajjo/ca487641a276725d0e23 to your computer and use it in GitHub Desktop.
Save jelenajjo/ca487641a276725d0e23 to your computer and use it in GitHub Desktop.
Session.set('Ad Type', 'Banner');
Template.myZones.helpers({
webSites: function(){
return Websites.find({userId: Meteor.userId()});
},
isBanner: function(){
if(Session.get('Ad Type') == "Banner")
return true
},
isMobile: function(){
if(Session.get('Ad Type') == "Mobile Ads")
return true
},
zones: function(){
return Zones.find({userId: Meteor.userId()});
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment