From 8fc0b659c9f6b16b4d1d469f1cd78a4d95fe2793 Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Tue, 16 Feb 2016 21:13:23 +0100 Subject: [PATCH] show public repo only for public submissions --- templates/query-form.hamlet | 2 +- templates/query-result.hamlet | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/query-form.hamlet b/templates/query-form.hamlet index 23df07b..aa4473d 100644 --- a/templates/query-form.hamlet +++ b/templates/query-form.hamlet @@ -1,6 +1,6 @@

Search for submission by Git commit SHA1 hashes: -

(Only public submissions will be returned.) +

(Only your own submissions or public submissions will be returned.)

diff --git a/templates/query-result.hamlet b/templates/query-result.hamlet index 098c9be..3b5d858 100644 --- a/templates/query-result.hamlet +++ b/templates/query-result.hamlet @@ -3,6 +3,7 @@
#{submitter}
#{stamp}
taken from: #{repoUrl $ fsiRepo submission} / branch #{repoBranch $ fsiRepo submission} -
publicly available at: #{publicSubmissionRepo} / branch #{publicSubmissionBranch} -
browsable at: #{browsableUrl} +$if submissionIsPublic $ fsiSubmission submission +
publicly available at: #{publicSubmissionRepo} / branch #{publicSubmissionBranch} +
browsable at: #{browsableUrl}