mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
Add skin search results.
This commit is contained in:
parent
908b50cb47
commit
0fb9f61ab3
1 changed files with 32 additions and 2 deletions
|
@ -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>
|
Loading…
Reference in a new issue