X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftournament%2FDetail.js;h=d4e23cdba4e0ca359a634d2fda2b73e896e595c1;hb=e0616336a824a6d59c4b9d25ef4ed7fa26214cef;hp=cfea60d2bcd8100bb164282bd89017880e15f0da;hpb=a748d5724c8acff6e3bb3fe6c20aa5968b65d58a;p=alttp.git diff --git a/resources/js/components/tournament/Detail.js b/resources/js/components/tournament/Detail.js index cfea60d..d4e23cd 100644 --- a/resources/js/components/tournament/Detail.js +++ b/resources/js/components/tournament/Detail.js @@ -3,7 +3,10 @@ import React from 'react'; import { Button, Col, Container, Row } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; +import ApplyButton from './ApplyButton'; import Scoreboard from './Scoreboard'; +import ScoreChartButton from './ScoreChartButton'; +import ApplicationsButton from '../applications/Button'; import Protocol from '../protocol/Protocol'; import Rounds from '../rounds/List'; import Box from '../users/Box'; @@ -44,40 +47,49 @@ const Detail = ({

{tournament.title}

- {mayViewProtocol(user, tournament) ? - - : null} +
+ + + {mayViewProtocol(user, tournament) ? + + : null} +
-
-

{i18n.t('tournaments.scoreboard')}

+
+
+

{i18n.t('tournaments.scoreboard')}

+ {hasRunners(tournament) && tournament.rounds.length > 2 ? + + : null} +
+ {hasRunners(tournament) ? + + : null} + {hasTournamentAdmins(tournament) ? + <> +
+

{i18n.t('tournaments.admins')}

+
+ {getTournamentAdmins(tournament).map(p => +

+ )} + + : null} + {hasTournamentMonitors(tournament) ? + <> +
+

{i18n.t('tournaments.monitors')}

+
+ {getTournamentMonitors(tournament).map(p => +

+ )} + + : null}
- {hasRunners(tournament) ? - - : null} - {hasTournamentAdmins(tournament) ? - <> -
-

{i18n.t('tournaments.admins')}

-
- {getTournamentAdmins(tournament).map(p => -

- )} - - : null} - {hasTournamentMonitors(tournament) ? - <> -
-

{i18n.t('tournaments.monitors')}

-
- {getTournamentMonitors(tournament).map(p => -

- )} - - : null}