/** @jsx React.DOM */
var Policy = React.createClass({
mixins: [conjur.views.mixins.Tab],
render: function() {
var policy = this.props.data.policy;
var id = policy.id.split(':')[2];
//TODO: policy loader
//TODO in CLI: why not save text of policy as an annotation?
var overview_tab =
- Owner
;
var permissions_tab = this.permissions_tab(policy.id);
var memberships_tab = this.memberships_tab(policy.id);
var annotations_tab = this.annotations_tab();
var owned_tab = this.owned_tab();
var audit_tab =
;
var tabs = _.compact( [ overview_tab, owned_tab, memberships_tab, permissions_tab,
annotations_tab, audit_tab
] );
return (
Policy {id}
{tabs}
);
}
});