diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-02 15:51:15 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-10-14 10:28:59 +0200 |
commit | 15b2160babc5c35ede960b7d0e133acbec8c6c51 (patch) | |
tree | 6475ad0602bbe4d6dae895aae43d331726ab8c33 /server/sonar-web/src/main/js/apps/permission-templates/permission-templates.js | |
parent | e51e9c9eb0145ea5e9d40453554c456585b79936 (diff) | |
download | sonarqube-15b2160babc5c35ede960b7d0e133acbec8c6c51.tar.gz sonarqube-15b2160babc5c35ede960b7d0e133acbec8c6c51.zip |
improve the web build system, introduce gulp and browserify
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates/permission-templates.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/permission-templates/permission-templates.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/permission-templates.js b/server/sonar-web/src/main/js/apps/permission-templates/permission-templates.js new file mode 100644 index 00000000000..a86379e256d --- /dev/null +++ b/server/sonar-web/src/main/js/apps/permission-templates/permission-templates.js @@ -0,0 +1,28 @@ +import React from 'react'; +import PermissionsHeader from './permissions-header'; +import PermissionTemplate from './permission-template'; + +export default React.createClass({ + propTypes:{ + permissionTemplates: React.PropTypes.arrayOf(React.PropTypes.object).isRequired, + permissions: React.PropTypes.arrayOf(React.PropTypes.object).isRequired, + topQualifiers: React.PropTypes.array.isRequired, + refresh: React.PropTypes.func.isRequired + }, + + render() { + let permissionTemplates = this.props.permissionTemplates.map(p => { + return <PermissionTemplate + key={p.id} + permissionTemplate={p} + topQualifiers={this.props.topQualifiers} + refresh={this.props.refresh}/>; + }); + return ( + <table id="permission-templates" className="data zebra"> + <PermissionsHeader permissions={this.props.permissions}/> + <tbody>{permissionTemplates}</tbody> + </table> + ); + } +}); |