1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 10:25:08 +01:00

aclproxy for view editions

This commit is contained in:
Tim Daubenschütz 2015-07-15 01:02:53 +02:00
parent 0351b6fce4
commit e1af4c615f

View File

@ -148,11 +148,16 @@ let AccordionListItem = React.createClass({
<h3>{getLangText('by %s', this.props.content.artist_name)}</h3> <h3>{getLangText('by %s', this.props.content.artist_name)}</h3>
<div> <div>
<span className="pull-left">{this.props.content.date_created.split('-')[0]}</span> <span className="pull-left">{this.props.content.date_created.split('-')[0]}</span>
<AccordionListItemEditionWidget
className="pull-right" <AclProxy
piece={this.props.content} aclObject={this.props.content.acl}
toggleCreateEditionsDialog={this.toggleCreateEditionsDialog} aclName="acl_view_editions">
onPollingSuccess={this.onPollingSuccess}/> <AccordionListItemEditionWidget
className="pull-right"
piece={this.props.content}
toggleCreateEditionsDialog={this.toggleCreateEditionsDialog}
onPollingSuccess={this.onPollingSuccess}/>
</AclProxy>
<AclProxy <AclProxy
show={this.props.content.prize === null}> show={this.props.content.prize === null}>
<SubmitToPrizeButton <SubmitToPrizeButton