diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/store/FileStore.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/store/FileStore.kt index 72404ea..048ef9a 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/store/FileStore.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/store/FileStore.kt @@ -112,10 +112,13 @@ class FileStore(pathStr: String): StoreImplementation { override fun replaceTournament(tournament: Tournament<*>) { val filename = tournament.filename() - val file = path.resolve(filename).toFile() - if (file.exists()) { - file.renameTo(path.resolve(filename + "-${timestamp}").toFile()) - } + // short name may have changed + path.useDirectoryEntries("${tournament.id.toString().padStart(LEFT_PAD, '0')}-*.tour") { entries -> + entries.mapNotNull { entry -> + entry.toFile() + }.firstOrNull() + }?.renameTo(path.resolve(filename + "-${timestamp}").toFile()) + addTournament(tournament) } diff --git a/view-webapp/src/main/webapp/WEB-INF/translations/fr b/view-webapp/src/main/webapp/WEB-INF/translations/fr index a88fb40..18e600a 100644 --- a/view-webapp/src/main/webapp/WEB-INF/translations/fr +++ b/view-webapp/src/main/webapp/WEB-INF/translations/fr @@ -5,19 +5,13 @@ , the well known pairing system software developed by , le logiciel d’appariement très connu développé par , your Go Pairing Engine! , votre logiciel d’appariement de Go ! .ui.form input[type=checkbox][name=online] { vertical-align: initial; } -13x13 -19x19 1st round seeding méthode 1è ronde -9x9 : If you prefer convenience, you can simply use the : Si vous préférez la commodité, vous pouvez simplement utiliser l’instance : This mode allows you to run : Ce mode vous permet de lancer : This mode is the best suited for big Go events like congresses, it allows to register players, enter results and manage pairing from several workstations at once. : Ce mode est le plus adapté pour de grands événements de Go comme les congrès, il permet d’enregistrer les joueurs, d’entrer les résultats et de gérer les appariements depuis plusieurs postes à la fois. : the : le projet -? -AGA Add player Ajouter At its core,   -BIP Browse Parcourir les sources de Byo-yomi periods Périodes de byo-yomi Byo-yomi stones Pierres de byo-yomi @@ -36,10 +30,8 @@ Ctr Pays Dates Dates Download Télécharger Download the standalone web interface module which suits your need, then follow Télécharger le module d’interface web qui correspond à vos besoins, puis suivez -EGF Edit Éditer Enter the magic word Entrer le mot magique -FFG Family name Nom de famille First name Prénom Fischer timing Cadence Fisher @@ -73,15 +65,12 @@ Nbw NbV New Tournament Nouveau Tournoi New tournament Nouveau tournoi Next rounds seeding Méthode rondes suivantes -Num Num OpenGotha file Fichier OpenGotha Pair Apparier Pair-go tournament Tournoi de pair-go Pairing Appariement Pairings for round Appariement pour la ronde Participation Participation -Plc Plc -R R Rank Niveau Rating Classement Register Inscrire @@ -123,23 +112,18 @@ Your feedback is most welcome! Vos retours sont les bienvenus ! and uses the same algorithm internally, as well as import and export features towards its format. et utilise le même algorithme en interne, ainsi que des fonctionnalités d’import et d’export vers et depuis son format. apache licence licence Apache black noir -checked -"class=""tab-content""" club club country pays d d -edit first name prénom from de h h -hidden in a way that best suits your needs. Here are your options: de la manière qui répond le mieux à vos besoin. Voici vos options : instance graciously hosted by the French Go Federation. gracieusement hébergée par la Fédération Française de Go is a Go tournament pairing engine designed to make your tournament experience effortless. est un logiciel d’appariement conçu pour faciliter l’organisation de tournoi. is the successor of est le successeur d' k k last name nom de famille -looser perdant on your local computer. sur votre ordinateur local. online tournament tournoi en ligne opengotha OpenGotha @@ -150,7 +134,6 @@ pairing system, ideal for championships with no handicap games, as well as the , pairing system, more suited for classical tournaments and cups. It is still in an alpha stage. Future versions will support more pairing systems and more features. , plus adapté pour les tournois classiques et les coupes. Il en est encore à une phase « alpha ». Les versions futures comporteront plus de systèmes d’appariements et de fonctionnalités. project is fully open source, and under the very permissive est un logiciel libre, et sous la très permissive result résultat -selected sources sources sources on FFG's gitlab sur le serveur gitab de la FFG standalone, standard interface indépendant, interface standard @@ -160,9 +143,5 @@ table table the configuration guide le guide de configuration to à unpairable players joueurs non disponibles -"value=""" version 0.1 supports the version 0.1 supporte le système d’appariement -white blanc white vs. black blanc vs. Noir -winner gagnant -{ diff --git a/view-webapp/src/main/webapp/js/tour-information.inc.js b/view-webapp/src/main/webapp/js/tour-information.inc.js index 49f9899..1429745 100644 --- a/view-webapp/src/main/webapp/js/tour-information.inc.js +++ b/view-webapp/src/main/webapp/js/tour-information.inc.js @@ -102,6 +102,7 @@ onLoad(() => { $('#tournament-infos').on('submit', e => { e.preventDefault(); let form = e.target; + console.log(form.val('country')); let tour = { name: form.val('name'), shortName: form.val('shortName'), diff --git a/view-webapp/src/main/webapp/tour-information.inc.html b/view-webapp/src/main/webapp/tour-information.inc.html index 264298e..92e75c5 100644 --- a/view-webapp/src/main/webapp/tour-information.inc.html +++ b/view-webapp/src/main/webapp/tour-information.inc.html @@ -45,7 +45,7 @@
or
diff --git a/view-webapp/src/main/webapp/tour-standings.inc.html b/view-webapp/src/main/webapp/tour-standings.inc.html index 5092697..2a8ee8e 100644 --- a/view-webapp/src/main/webapp/tour-standings.inc.html +++ b/view-webapp/src/main/webapp/tour-standings.inc.html @@ -68,10 +68,16 @@ $part.name $part.firstname #rank($part.rank) $part.country - $part.NBW + $number.format('0.#', $part.NBW) #set($mx = $round - 1) #foreach($r in [0..$mx]) - $part.results[$r] + #set($rst = $part.results[$r]) + #if($rst.contains('+')) + #set($rst = "$rst") + #elseif($rst.contains('-')) + #set($rst = "$rst") + #end + $rst #end #foreach($crit in $tour.pairing.placement) $number.format('0.#', $part[$crit])