/** @jsx React.DOM */ /* global conjur, React, ReactBootstrap, _ */ (function(conjur, React, ReactBootstrap, _) { 'use strict'; var TabbedArea = ReactBootstrap.TabbedArea, TabPane = ReactBootstrap.TabPane, Tab = conjur.views.mixins.Tab, RoleLink = conjur.views.RoleLink, AuditBox = window.AuditBox; this.Policy = React.createClass({ mixins: [Tab], render: function() { var policy = this.props.data.policy, id = policy.id.split(':')[2]; //TODO: policy loader //TODO in CLI: why not save text of policy as an annotation? var overviewTab = (
Owner
); var permissionsTab = this.permissionsTab(policy.id), membershipsTab = this.membershipsTab(policy.id), annotationsTab = this.annotationsTab(), ownedTab = this.ownedTab(); var auditTab = (
); var tabs = _.compact([ overviewTab, ownedTab, membershipsTab, permissionsTab, annotationsTab, auditTab ]); return (

Policy {id}

{tabs}
); } }); }).bind(conjur.views) ( conjur, React, ReactBootstrap, _ );