public function tournament_first() {
return $this->tournaments()
->where('locked', true)
+ ->where('show_scoreboard', true)
->where('no_record', false)
->wherePivot('placement', 1);
}
public function tournament_second() {
return $this->tournaments()
->where('locked', true)
+ ->where('show_scoreboard', true)
->where('no_record', false)
->wherePivot('placement', 2);
}
public function tournament_third() {
return $this->tournaments()
->where('locked', true)
+ ->where('show_scoreboard', true)
->where('no_record', false)
->wherePivot('placement', 3);
}
</Button>
</td>
<td>
- {getIcon(p)}
- {!p.tournament.locked && isRunner(p) ?
- <span title={i18n.t('participants.placementSubjectToChange')}> *</span>
- : null}
- {p.tournament.no_record ?
- <span title={i18n.t('tournaments.noRecord')}> †</span>
- : null}
+ {p.tournament.show_scoreboard ? <>
+ {getIcon(p)}
+ {!p.tournament.locked && isRunner(p) ?
+ <span title={i18n.t('participants.placementSubjectToChange')}> *</span>
+ : null}
+ {p.tournament.no_record ?
+ <span title={i18n.t('tournaments.noRecord')}> †</span>
+ : null}
+ </> : '—'}
</td>
<td>
{p.roles ? p.roles.map((role, index) =>
import Participation from './Participation';
import EpisodesList from '../episodes/List';
import Icon from '../common/Icon';
-import { getIcon, getTime } from '../../helpers/Result';
+import { getTime } from '../../helpers/Result';
const getQuoteSource = (result) => {
if (!result || !result.round) return '';