diff --git a/public/javascripts/controllers/farmer-ctrl.js b/public/javascripts/controllers/farmer-ctrl.js index 19b0d41..36aa05c 100644 --- a/public/javascripts/controllers/farmer-ctrl.js +++ b/public/javascripts/controllers/farmer-ctrl.js @@ -90,6 +90,14 @@ angular.module('jasmic.controllers') } }; + $scope.isActive = function(exp_date) { + if(new Date(exp_date) > Date.now()) { + return true; + } else { + return false; + } + }; + /** * Attempts to add new Farm to the farmer object. Assumes the * server will take care of the address creation. diff --git a/public/partials/membership_card.html b/public/partials/membership_card.html index 84426e7..c8b1adc 100644 --- a/public/partials/membership_card.html +++ b/public/partials/membership_card.html @@ -18,7 +18,7 @@