Sha256: c5d07541a5b520ec58ac093fba5d44db99ead41fd61a605bba49a10d46617a36
Contents?: true
Size: 534 Bytes
Versions: 3
Compression:
Stored size: 534 Bytes
Contents
/** @jsx React.DOM */ /** render a link to the role represented by this.props.id Example: <RoleLink id="ci:user:jon"/> */ var RoleLink = React.createClass({ render: function() { var tokens = this.props.id.split(":"); var kind = tokens[1]; var id = tokens[tokens.length-1]; var href = "/ui/" + pluralize(kind) + "/" + encodeURIComponent(id); var classes = ['role-link']; if(!this.props.noIcon) classes.push(kind) return <a className={classes.join(' ')} href={href}> {id} </a>; } });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
conjur-asset-ui-api-1.2.0 | public/js/views/role.js |
conjur-asset-ui-api-1.1.1 | public/js/views/role.js |
conjur-asset-ui-api-1.1.0 | public/js/views/role.js |