]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/tournament/Detail.js
basic score chart
[alttp.git] / resources / js / components / tournament / Detail.js
index b20f2082c36ca2273584f55a1cb6890c194801fc..d4e23cdba4e0ca359a634d2fda2b73e896e595c1 100644 (file)
@@ -5,6 +5,8 @@ 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';
@@ -46,6 +48,7 @@ const Detail = ({
                        <div className="d-flex align-items-center justify-content-between">
                                <h1>{tournament.title}</h1>
                                <div className="button-bar">
+                                       <ApplicationsButton tournament={tournament} />
                                        <ApplyButton tournament={tournament} />
                                        {mayViewProtocol(user, tournament) ?
                                                <Protocol id={tournament.id} />
@@ -59,6 +62,9 @@ const Detail = ({
                        <div className="tournament-sidebar">
                                <div className="d-flex align-items-center justify-content-between">
                                        <h2>{i18n.t('tournaments.scoreboard')}</h2>
+                                       {hasRunners(tournament) && tournament.rounds.length > 2 ?
+                                               <ScoreChartButton tournament={tournament} />
+                                       : null}
                                </div>
                                {hasRunners(tournament) ?
                                        <Scoreboard tournament={tournament} />