mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
show email of user registered on select
This commit is contained in:
parent
65571848fb
commit
1f95ae3a41
@ -109,6 +109,8 @@ let PieceContainer = React.createClass({
|
|||||||
let artistName = ((this.state.currentUser.is_jury && !this.state.currentUser.is_judge) ||
|
let artistName = ((this.state.currentUser.is_jury && !this.state.currentUser.is_judge) ||
|
||||||
(this.state.currentUser.is_judge && !this.state.piece.selected )) ?
|
(this.state.currentUser.is_judge && !this.state.piece.selected )) ?
|
||||||
<span className="glyphicon glyphicon-eye-close" aria-hidden="true"/> : this.state.piece.artist_name;
|
<span className="glyphicon glyphicon-eye-close" aria-hidden="true"/> : this.state.piece.artist_name;
|
||||||
|
let artistEmail = (this.state.currentUser.is_judge && this.state.piece.selected ) ?
|
||||||
|
<DetailProperty label="REGISTREE" value={ this.state.piece.user_registered } /> : null;
|
||||||
return (
|
return (
|
||||||
<Piece
|
<Piece
|
||||||
piece={this.state.piece}
|
piece={this.state.piece}
|
||||||
@ -122,6 +124,7 @@ let PieceContainer = React.createClass({
|
|||||||
<h1 className="ascribe-detail-title">{this.state.piece.title}</h1>
|
<h1 className="ascribe-detail-title">{this.state.piece.title}</h1>
|
||||||
<DetailProperty label="BY" value={artistName} />
|
<DetailProperty label="BY" value={artistName} />
|
||||||
<DetailProperty label="DATE" value={ this.state.piece.date_created.slice(0, 4) } />
|
<DetailProperty label="DATE" value={ this.state.piece.date_created.slice(0, 4) } />
|
||||||
|
{artistEmail}
|
||||||
{this.getActions()}
|
{this.getActions()}
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
@ -256,8 +259,6 @@ let PrizePieceRatings = React.createClass({
|
|||||||
startdate={today}
|
startdate={today}
|
||||||
enddate={endDate}
|
enddate={endDate}
|
||||||
showPersonalMessage={true}
|
showPersonalMessage={true}
|
||||||
showStartDate={true}
|
|
||||||
showEndDate={true}
|
|
||||||
showPassword={false}
|
showPassword={false}
|
||||||
handleSuccess={this.handleLoanSuccess} />
|
handleSuccess={this.handleLoanSuccess} />
|
||||||
</ModalWrapper>);
|
</ModalWrapper>);
|
||||||
|
Loading…
Reference in New Issue
Block a user