2021-06-16 08:15:14 +02:00
|
|
|
<p> Git repo URL: <tt style="background-color: #eeeeee";>#{repoUrl repo}</tt> / Branch: <tt style="background-color: #eeeeee";> #{repoBranch repo}</tt>
|
|
|
|
<br>Run <tt style="background-color: #eeeeee";>git clone --single-branch #{repoUrl repo} -b #{repoBranch repo}</tt> to get the challenge data
|
|
|
|
$maybe repoLink <- maybeRepoLink
|
|
|
|
<br>Browse at <tt><a href="#{repoLink}">#{repoLink}</a></tt>
|
|
|
|
$nothing
|
2015-12-12 18:53:20 +01:00
|
|
|
|
2019-03-20 16:31:08 +01:00
|
|
|
$if (challengeArchived challenge == Just True)
|
2021-02-17 09:31:23 +01:00
|
|
|
<p><b>_{MsgChallengeIsArchived}
|
2019-03-20 16:31:08 +01:00
|
|
|
|
|
|
|
$if (checkIfAdmin mUserEnt)
|
|
|
|
$if (challengeArchived challenge /= Just True)
|
|
|
|
<form method=post action=@{ArchiveR challengeId}#form enctype="text/plain">
|
2021-02-17 09:31:23 +01:00
|
|
|
<button>_{MsgArchive}
|
2019-08-29 08:56:22 +02:00
|
|
|
<form method=get action=@{ChallengeUpdateR challengeId}#form enctype="text/plain">
|
2021-02-17 09:31:23 +01:00
|
|
|
<button>_{MsgUpdate}
|
2022-01-18 22:54:07 +01:00
|
|
|
<form method=get action=@{TestChallengeAnnouncementsR (challengeName challenge)}#form enctype="text/plain">
|
|
|
|
<button>_{MsgTestChallengeAnnouncements}
|
2019-08-28 08:49:43 +02:00
|
|
|
|
|
|
|
$if (challengeArchived challenge == Just True)
|
2019-03-20 16:31:08 +01:00
|
|
|
<form method=post action=@{UnarchiveR challengeId}#form enctype="text/plain">
|
2021-02-17 09:31:23 +01:00
|
|
|
<button>_{MsgUnarchive}
|
|
|
|
|
|
|
|
$if not isHealthy
|
|
|
|
_{MsgChallengeNotHealthy} <form method=post action=@{HealR challengeId}#form enctype="text/plain">
|
|
|
|
<button>_{MsgHeal}
|
|
|
|
|
2019-03-20 16:31:08 +01:00
|
|
|
|
2015-12-12 18:53:20 +01:00
|
|
|
<h2>Leaderboard
|
|
|
|
|
2021-07-28 21:37:06 +02:00
|
|
|
$if null tests
|
|
|
|
<p>_{MsgNoTests}
|
|
|
|
$else
|
|
|
|
^{Table.buildBootstrap (leaderboardTable mUserId (challengeName challenge) scheme challengeRepo tests) leaderboardWithRanks}
|
|
|
|
|
|
|
|
$maybe altLeaderboardWithRanks <- mAltLeaderboardWithRanks
|
|
|
|
$maybe altTests <- mAltTests
|
|
|
|
^{Table.buildBootstrap (altLeaderboardTable mUserId (challengeName challenge) scheme challengeRepo altTests) altLeaderboardWithRanks}
|
|
|
|
$nothing
|
2019-12-16 16:39:20 +01:00
|
|
|
$nothing
|
|
|
|
|
2021-07-28 21:37:06 +02:00
|
|
|
<div id="graph-container">
|
2016-02-15 22:11:46 +01:00
|
|
|
|
2021-07-28 21:37:06 +02:00
|
|
|
<script src="/static/js/sigma.min.js">
|
|
|
|
<script src="/static/js/sigma.parsers.json.min.js">
|
2018-07-28 22:10:55 +02:00
|
|
|
|
2021-07-28 21:37:06 +02:00
|
|
|
^{paramGraphsWidget challenge tests params}
|