2019-03-02 18:29:09 -05:00
|
|
|
<ul class="nav nav-tabs border-top border-bottom nav-fill row" 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 ">
|
2019-08-02 19:04:34 -04:00
|
|
|
<a class="nav-link top-players-link" href="#server_@server.ID" role="tab" data-toggle="tab" aria-selected="false" data-serverid="@server.ID">
|
|
|
|
<color-code value="@server.Name" allow="@ViewBag.EnableColorCodes"></color-code>
|
|
|
|
</a>
|
2019-02-25 20:36:10 -05:00
|
|
|
</li>
|
|
|
|
}
|
|
|
|
</ul>
|
2019-03-09 11:28:04 -05:00
|
|
|
<div class="tab-content border-bottom row">
|
2019-03-17 18:37:50 -04:00
|
|
|
<div role="tabpanel" class="tab-pane active striped flex-fill" id="server_0">
|
2019-02-27 21:13:15 -05:00
|
|
|
@await Component.InvokeAsync("TopPlayers", new { count = 10, offset = 0 })
|
2019-02-25 20:36:10 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@foreach (var server in ViewBag.Servers)
|
|
|
|
{
|
2019-03-17 18:37:50 -04:00
|
|
|
<div role="tabpanel" class="tab-pane striped flex-fill" id="server_@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-27 21:13:15 -05:00
|
|
|
<script>initLoader('/Stats/GetTopPlayersAsync', '#server_0', 10);</script>
|
2019-02-16 18:18:50 -05:00
|
|
|
}
|