X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftournament%2FDetail.js;h=cdc9b601bd3b3c81448b1e3015e57b312f3922bc;hb=cd36cb0ba2718e6bfa08765e7702d57dfe7fd733;hp=1afcc29f10611a1e434c13f3a035dcfad3da9cee;hpb=33cc4da565ffb07ee4f8d9cbafb248629b85e65a;p=alttp.git diff --git a/resources/js/components/tournament/Detail.js b/resources/js/components/tournament/Detail.js index 1afcc29..cdc9b60 100644 --- a/resources/js/components/tournament/Detail.js +++ b/resources/js/components/tournament/Detail.js @@ -3,7 +3,9 @@ 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 ApplicationsButton from '../applications/Button'; import Protocol from '../protocol/Protocol'; import Rounds from '../rounds/List'; import Box from '../users/Box'; @@ -14,8 +16,10 @@ import { } from '../../helpers/permissions'; import { getTournamentAdmins, + getTournamentMonitors, hasRunners, hasTournamentAdmins, + hasTournamentMonitors, } from '../../helpers/Tournament'; import { withUser } from '../../helpers/UserContext'; import i18n from '../../i18n'; @@ -42,30 +46,46 @@ const Detail = ({

{tournament.title}

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

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

+
+
+

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

+
+ {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}