mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
show disqualified entries
This commit is contained in:
parent
248c3398dd
commit
699912bc5f
2 changed files with 7 additions and 1 deletions
|
@ -97,6 +97,8 @@ public class ContestEntry
|
||||||
public string DownloadURL { get; set; }
|
public string DownloadURL { get; set; }
|
||||||
public DateTime PostedAt { get; set; }
|
public DateTime PostedAt { get; set; }
|
||||||
public bool Disqualified { get; set; }
|
public bool Disqualified { get; set; }
|
||||||
|
public string DisqualifiedBy { get; set; }
|
||||||
|
public string DisqualifiedReason { get; set; }
|
||||||
|
|
||||||
public Like[] Downvotes
|
public Like[] Downvotes
|
||||||
{
|
{
|
||||||
|
|
|
@ -66,6 +66,10 @@
|
||||||
<div class="col-xs-8">
|
<div class="col-xs-8">
|
||||||
@Html.ActionLink(c.Name, "ViewSubmission", "Contests", new { id=c.Id}, null) <br/>
|
@Html.ActionLink(c.Name, "ViewSubmission", "Contests", new { id=c.Id}, null) <br/>
|
||||||
<p>By @Html.UserLink(c.AuthorId) on @c.PostedAt • <span class="glyphicon glyphicon-thumbs-up"></span> @c.Upvotes.Length • <span class="glyphicon glyphicon-thumbs-down"></span> @c.Downvotes.Length</p>
|
<p>By @Html.UserLink(c.AuthorId) on @c.PostedAt • <span class="glyphicon glyphicon-thumbs-up"></span> @c.Upvotes.Length • <span class="glyphicon glyphicon-thumbs-down"></span> @c.Downvotes.Length</p>
|
||||||
|
@if (c.Disqualified)
|
||||||
|
{
|
||||||
|
<p><strong>This submission has been disqualified by @Html.UserLink(c.DisqualifiedBy) - Reason:</strong><br/>@c.DisqualifiedReason</p>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-4">
|
<div class="col-xs-4">
|
||||||
@if (!string.IsNullOrWhiteSpace(c.VideoId))
|
@if (!string.IsNullOrWhiteSpace(c.VideoId))
|
||||||
|
@ -76,7 +80,7 @@
|
||||||
{
|
{
|
||||||
<a href="@c.DownloadURL" class="btn btn-default"><span class="glyphicon-arrow-down"></span> Download</a>
|
<a href="@c.DownloadURL" class="btn btn-default"><span class="glyphicon-arrow-down"></span> Download</a>
|
||||||
}
|
}
|
||||||
@if (User.Identity.IsAdmin())
|
@if (User.Identity.IsAdmin() && c.Disqualified == false)
|
||||||
{
|
{
|
||||||
@Html.ActionLink("Disqualify", "Disqualify", "Contests", new { id=c.Id}, new { @class="btn btn-danger"})
|
@Html.ActionLink("Disqualify", "Disqualify", "Contests", new { id=c.Id}, new { @class="btn btn-danger"})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue