Commit b6bee389 authored by Nathan Bean's avatar Nathan Bean
Browse files

Updated validation attempt to have a github link

parent 69017a94
......@@ -86,5 +86,17 @@ namespace KSU.CS.Pendant.Server.Models
/// </summary>
public string CommitIdentifier { get; set; }
/// <summary>
/// A direct link to the validated commit in the GitHub repo, or null if one is not available
/// </summary>
public string GitHubUrl
{
get
{
if (string.IsNullOrWhiteSpace(CommitIdentifier) || string.IsNullOrWhiteSpace(RepoFullName)) return null;
else return $"https://github.com/{RepoFullName}/tree/{CommitIdentifier}";
}
}
}
}
......@@ -39,7 +39,13 @@
<div>
<h4>Validation Results for @Model.User.FullName for @Model.Assignment.Name from @Html.DisplayFor(model => model.DateTime)</h4>
<p>
@if(!(Model.GitHubUrl is null))
{
<p>
The code evaluated for this validation can be <a href="@Model.GitHubUrl" target="_blank">viewed on GitHub</a>.
</p>
}
<p>
You will want to refer to the <a href="@Model.Assignment.DescriptionUrl" target="_blank">assignment description</a> when
addressing structural and design issues.
</p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment