Add skin search results.

This commit is contained in:
Michael 2017-04-07 11:02:57 -04:00
parent 908b50cb47
commit 0fb9f61ab3

View file

@ -63,13 +63,43 @@
@if (!string.IsNullOrEmpty(download.DevUpdateId))
{
<a href="http://youtube.com/watch?v=@download.DevUpdateId" class="btn btn-default"><span class="glyphicon glyphicon-play"></span> Watch dev update</a>
<a href="@Url.Action("ViewRelease", "Download", new {id=download.Id})" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span> View details</a>
<a href="@download.DownloadUrl" class="btn btn-default"><span class="glyphicon glyphicon-arrow-down"></span> Download</a>
}
<a href="@Url.Action("ViewRelease", "Download", new {id=download.Id})" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span> View details</a>
<a href="@download.DownloadUrl" class="btn btn-default"><span class="glyphicon glyphicon-arrow-down"></span> Download</a>
</td>
</tr>
}
</table>
</div>
<div class="tab-pane fade in active" id="t_skins">
<h4>Skins</h4>
<table class="table">
<tr>
<th style="width:45%">Skin</th>
<th style="width:20%">Popularity</th>
<th>Actions</th>
</tr>
@foreach (var download in Model.Skins.OrderByDescending(x => x.PostedAt))
{
<tr>
<td>
<p>@download.Name <br /> ...made by @Html.UserLink(download.UserId), released at @download.PostedAt</p>
</td>
<td>
<span class="glyphicon glyphicon-thumbs-up"></span> @download.Likes.Length <span class="glyphicon glyphicon-thumbs-down"></span> @download.Dislikes.Length
</td>
<td>
<a href="@Url.Action("ViewSkin", "Skins", new {id=download.Id})" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span> View details</a>
<a href="@download.DownloadUrl" class="btn btn-default"><span class="glyphicon glyphicon-arrow-down"></span> Download</a>
</td>
</tr>
}
</table>
</div>
</div>