From 247cca3ee20865e9058b890ac25dcaa84b758175 Mon Sep 17 00:00:00 2001 From: diminator Date: Thu, 13 Aug 2015 13:28:09 +0200 Subject: [PATCH] piece rating + navigation OK close prize --- .../accordion_list_item_piece.js | 3 +- .../prize/actions/prize_rating_actions.js | 2 - .../accordion_list_item_prize.js | 7 +- .../ascribe_detail/piece_container.js | 34 ++++---- .../whitelabel/prize/components/landing.js | 77 +++++++++++++++---- .../whitelabel/prize/components/piece_list.js | 36 +++++++-- sass/main.scss | 10 +++ 7 files changed, 126 insertions(+), 43 deletions(-) diff --git a/js/components/ascribe_accordion_list/accordion_list_item_piece.js b/js/components/ascribe_accordion_list/accordion_list_item_piece.js index 65b6454c..e1271b0a 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item_piece.js +++ b/js/components/ascribe_accordion_list/accordion_list_item_piece.js @@ -60,7 +60,8 @@ let AccordionListItemPiece = React.createClass({ } subheading={

- {getLangText('by %s', this.props.piece.artist_name)} + {getLangText('by ')} + {this.props.artistName ? this.props.artistName : this.props.piece.artist_name}

} subsubheading={this.props.subsubheading} diff --git a/js/components/whitelabel/prize/actions/prize_rating_actions.js b/js/components/whitelabel/prize/actions/prize_rating_actions.js index 536445f8..e36023a0 100644 --- a/js/components/whitelabel/prize/actions/prize_rating_actions.js +++ b/js/components/whitelabel/prize/actions/prize_rating_actions.js @@ -37,7 +37,6 @@ class PrizeRatingActions { resolve(res); }) .catch((err) => { - console.logGlobal(err); reject(err); }); }); @@ -52,7 +51,6 @@ class PrizeRatingActions { resolve(res); }) .catch((err) => { - console.logGlobal(err); reject(err); }); }); diff --git a/js/components/whitelabel/prize/components/ascribe_accordion_list/accordion_list_item_prize.js b/js/components/whitelabel/prize/components/ascribe_accordion_list/accordion_list_item_prize.js index 0c41ca57..73c82ca4 100644 --- a/js/components/whitelabel/prize/components/ascribe_accordion_list/accordion_list_item_prize.js +++ b/js/components/whitelabel/prize/components/ascribe_accordion_list/accordion_list_item_prize.js @@ -69,7 +69,7 @@ let AccordionListItemPrize = React.createClass({ // jury and rating available let rating = parseInt(this.props.content.ratings.rating, 10); return ( -
+
@@ -121,18 +123,18 @@ let NavigationHeader = React.createClass({ }, render() { - if (this.props.currentUser && this.props.currentUser.is_jury && this.props.piece.navigation) { + if (this.props.currentUser && this.props.piece.navigation) { let nav = this.props.piece.navigation; return (
-