Revert "De-implement angular work package column filters"

This reverts commit 4f7bc83dbb.
pull/913/head
Till Breuer 11 years ago
parent 9a337b99ad
commit 9072acd652
  1. 23
      app/assets/javascripts/angular/filters/column_filters.js

@ -33,5 +33,26 @@ openprojectApp
return object[map[option]]();
}
};
});
})
// work packages
.filter('columnContent', function(){
return function(object, option) {
return object[option]; // TODO formatting by type
};
})
.filter('columnNamedChildContent', function(){
// TODO RS: This is just a temporary solution to display some text for child objects
return function(object, option) {
var p = object[option];
switch(typeof(p)) {
case 'string':
return p;
case 'object':
return p['name'];
default:
return 'None';
}
};
});

Loading…
Cancel
Save