Sha256: c12f0ddb65119e81597a7e6292525a7e2711dfdd51ac01cb5a13aad941fa114b

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

/** @jsx React.DOM */

var Group = React.createClass({
  render: function() {
    var members = this.props.data.members.map(function (member) {
      return <li>
        <RoleLink id={member.member} />
      </li>
    }.bind(this));
    var resourceId = [ conjurConfiguration.account, 'group', this.props.data.group.id ].join(':')
    var group = this.props.data.group; 
    return (
      <div className="group">
        <h2>Group {this.props.data.group.id}</h2>
        <dl>
          <dt>Owner</dt>
          <dd><RoleLink id={this.props.data.group.ownerid}/></dd>
          <dt>Members</dt>
          <dd>
            <ul>
              {members}
            </ul>
          </dd>
        </dl>
        <Permissions role={group.roleid}/>
        <div className="audit auditGroup">
          <AuditBox roles={[resourceId]} resources={[resourceId]}/>
        </div>
      </div>
    );
  }
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conjur-asset-ui-api-1.1.1 public/js/views/group.js
conjur-asset-ui-api-1.1.0 public/js/views/group.js