Sha256: d7ddf03f1ff1bb7e7988dcdf002fd3c952aaaa0daf3737611762187c0161190d
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
/** @jsx React.DOM */ var HostLink = React.createClass({ hostId : function() { return this.props.data.split(':')[2]; }, hostUrl: function() { return "/ui/hosts/" + encodeURIComponent(this.hostId()); }, render: function() { return ( <a href={this.hostUrl()}> {this.hostId()} </a> ); } }); var Host = React.createClass({ render: function(){ var host = this.props.data; return ( <div className="host"> <h2> Host {host.id} </h2> <dl> <dt> Owner </dt> <dd> <RoleLink id={host.ownerid}/> </dd> <dt> Created At </dt> <dd> <Time timestamp={host.created_at}/> </dd> </dl> <Permissions role={host.roleid}/> <div className="audit auditHost"> <AuditBox roles={[host.roleid]} resources={[host.resource_identifier]}/> </div> </div> ); } })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-asset-ui-api-1.1.1 | public/js/views/host.js |
conjur-asset-ui-api-1.1.0 | public/js/views/host.js |