Add tournament schedule button, closes #4183

This commit is contained in:
Greg Finley 2018-04-03 14:05:04 -07:00
parent 299184a6e4
commit 24dd1597d5
3 changed files with 5 additions and 2 deletions

View file

@ -55,11 +55,12 @@ url = s"$netBaseUrl${routes.Tournament.home().url}",
title = s"${trans.tournamentHomeTitle()}",
description = s"${trans.tournamentHomeDescription()}").some) {
<div class="content_box tournament_box no_padding">
@if(ctx.isAuth) {
<div class="create_tournament">
<a href="/tournament/calendar" class="action button text">@trans.tournamentCalendar()</a>
@if(ctx.isAuth) {
<a href="@routes.Tournament.form()" class="action button text">@trans.createANewTournament()</a>
</div>
}
</div>
<h1>@trans.tournaments()</h1>
<div id="tournament_schedule"></div>
<div id="tournament_list">

View file

@ -291,6 +291,7 @@ val `duration` = new Translated("duration", Site)
val `winner` = new Translated("winner", Site)
val `standing` = new Translated("standing", Site)
val `createANewTournament` = new Translated("createANewTournament", Site)
val `tournamentCalendar` = new Translated("tournamentCalendar", Site)
val `join` = new Translated("join", Site)
val `withdraw` = new Translated("withdraw", Site)
val `points` = new Translated("points", Site)

View file

@ -384,6 +384,7 @@ a computer analysis, a game chat and a shareable URL.</string>
<string name="winner">Winner</string>
<string name="standing">Standing</string>
<string name="createANewTournament">Create a new tournament</string>
<string name="tournamentCalendar">Tournament calendar</string>
<string name="join">Join</string>
<string name="withdraw">Withdraw</string>
<string name="points">Points</string>