2019-02-26 22:25:27 -05:00
|
|
|
<ul class="nav nav-tabs" role="tablist" id="stats_top_players">
|
2019-02-25 20:36:10 -05:00
|
|
|
<li class="nav-item">
|
2019-02-26 22:25:27 -05:00
|
|
|
<a class="nav-link active top-players-link" href="#server_0" role="tab" data-toggle="tab" aria-selected="true" data-serverid="0">All Servers</a>
|
2019-02-25 20:36:10 -05:00
|
|
|
</li>
|
|
|
|
|
|
|
|
@foreach (var server in ViewBag.Servers)
|
|
|
|
{
|
2019-02-26 22:25:27 -05:00
|
|
|
<li class="nav-item ">
|
|
|
|
<a class="nav-link top-players-link" href="#server_@server.ID" role="tab" data-toggle="tab" aria-selected="false" data-serverid="@server.ID">@server.Name</a>
|
2019-02-25 20:36:10 -05:00
|
|
|
</li>
|
|
|
|
}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content striped border-bottom">
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="server_0">
|
2019-02-26 22:25:27 -05:00
|
|
|
@await Component.InvokeAsync("TopPlayers", new { count = 50, offset = 0 })
|
2019-02-25 20:36:10 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@foreach (var server in ViewBag.Servers)
|
|
|
|
{
|
|
|
|
<div role="tabpanel" class="tab-pane" id="server_@server.ID">
|
2019-02-26 22:25:27 -05:00
|
|
|
@await Component.InvokeAsync("TopPlayers", new { count = 50, offset = 0, serverId = server.ID })
|
2019-02-25 20:36:10 -05:00
|
|
|
</div>
|
|
|
|
}
|
2019-02-16 18:18:50 -05:00
|
|
|
</div>
|
2018-05-28 21:30:31 -04:00
|
|
|
|
2019-02-26 22:25:27 -05:00
|
|
|
@section scripts
|
|
|
|
{
|
2018-05-30 21:50:20 -04:00
|
|
|
<environment include="Development">
|
2019-02-26 22:25:27 -05:00
|
|
|
<script type="text/javascript" src="~/js/loader.js"></script>
|
|
|
|
<script type="text/javascript" src="~/js/stats.js"></script>
|
2018-05-30 21:50:20 -04:00
|
|
|
</environment>
|
2019-02-26 22:25:27 -05:00
|
|
|
<script>initLoader('/Stats/GetTopPlayersAsync', '#server_0', 50);</script>
|
2019-02-16 18:18:50 -05:00
|
|
|
}
|