82bae772f0
issue #68
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
<ul class="nav nav-tabs border-top border-bottom nav-fill row" role="tablist" id="stats_top_players">
|
|
<li class="nav-item">
|
|
<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>
|
|
</li>
|
|
|
|
@foreach (var server in ViewBag.Servers)
|
|
{
|
|
<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>
|
|
</li>
|
|
}
|
|
</ul>
|
|
|
|
<div class="tab-content border-bottom">
|
|
<div role="tabpanel" class="tab-pane active striped" id="server_0">
|
|
@await Component.InvokeAsync("TopPlayers", new { count = 10, offset = 0 })
|
|
</div>
|
|
|
|
@foreach (var server in ViewBag.Servers)
|
|
{
|
|
<div role="tabpanel" class="tab-pane striped" id="server_@server.ID">
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
@section scripts
|
|
{
|
|
<environment include="Development">
|
|
<script type="text/javascript" src="~/js/loader.js"></script>
|
|
<script type="text/javascript" src="~/js/stats.js"></script>
|
|
</environment>
|
|
<script>initLoader('/Stats/GetTopPlayersAsync', '#server_0', 10);</script>
|
|
}
|