type-and-time.js

angular.module('homepage').
directive('typeAndTime', function () {
    return {
        restrict: 'E',
        scope: {
        	data: '='
        },
        replace: true,
        transclude: true,
        templateUrl: 'components/content-components/timeline/type-and-time.html'
    }
}).
filter('typelabel', function () {
	return function (type) {
		var title = '';
    	switch(type) {
            case 'ACTY': title = 'gamepad'; break;
    		case 'NOTE': title = 'book'; break;
    		case 'LIST': title = 'list-ul'; break;
            case 'FOOD': title = 'glass'; break;
    		case 'MOOD': title = 'meh-o'; break;
    		case 'HLTH': title = 'heartbeat'; break;
    		case 'CKIN': title = 'map-marker'; break;
            case 'PLCS': title = 'location-arrow'; break;
    		case 'MNEY': title = 'rupee'; break;
    		case 'HABT': title = 'refresh'; break;
    		case 'CLDR': title = 'calendar'; break;
    	}
    	return title;
	}
});