diff --git a/src/static/riot/competitions/detail/_header.tag b/src/static/riot/competitions/detail/_header.tag index 55950fa64..3b34c066f 100644 --- a/src/static/riot/competitions/detail/_header.tag +++ b/src/static/riot/competitions/detail/_header.tag @@ -32,6 +32,7 @@
+
Organized by: {competition.created_by} @@ -44,10 +45,19 @@ Current server time: {pretty_date(CURRENT_DATE_TIME)}
+ +
+ Docker image: + { competition.docker_image } + + + +
+
Secret url: https://{ URLS.SECRET_KEY_URL(competition.id, competition.secret_key) } - +
@@ -207,7 +217,17 @@ window.getSelection().addRange(range); // to select text document.execCommand("copy"); window.getSelection().removeAllRanges();// to deselect - $('.send-pop').popup('toggle') + $('.send-pop-secret').popup('toggle') + } + + self.copy_docker_url = function () { + let range = document.createRange(); + range.selectNode(document.getElementById("docker-image")); + window.getSelection().removeAllRanges(); // clear current selection + window.getSelection().addRange(range); // to select text + document.execCommand("copy"); + window.getSelection().removeAllRanges();// to deselect + $('.send-pop-docker').popup('toggle') } self.get_end_date = function (competition) { @@ -232,6 +252,7 @@ $blue = #2c3f4c $teal = #00bbbb $lightblue = #f2faff + $red = #DB2828 .detail-label font-size 1.25em @@ -249,7 +270,10 @@ font-size 13px .secret-label - color #DB2828 + color $red + + .docker-label + color $teal .secret-url color $blue