rconService.getUsers() will get and parse the userdata

PlayerInfo displays Info and provide a link to steam profile
Dropdown in the Playerlist offers more options the selected Player
This commit is contained in:
alexfriesen
2016-05-18 14:10:03 +02:00
parent 7a6a1e13fc
commit 172ee95216
5 changed files with 107 additions and 10 deletions
+41 -3
View File
@@ -1,9 +1,47 @@
<div ng-controller="PlayerInfoController" flex layout="column" id="PlayerInfoController">
Info about player {{userid}}
<div class="row">
<p>View <a href="#/{{address}}/player/{{userid}}/xp">XP info for this player</a></p>
Show info about this player here
<div class="col-lg-12">
<h2 class="center">
Player: {{getUsername()}}
<div class="btn-group pull-right">
<button ng-click="refresh()" class="btn btn-default" type="button"><i class="glyphicon glyphicon-refresh"></i></button>
</div>
</h2>
<div class="btn-group btn-group-lg btn-group-justified">
<div class="btn-group">
<a href="#/{{address}}/player/{{userid}}/xp" class="btn btn-default">
<span class="glyphicon glyphicon-education"></span>
XP Info
</a>
</div>
<div class="btn-group">
<a href="http://www.steamcommunity.com/profiles/{{userid}}" target="_blank" class="btn btn-default">
<span class="glyphicon glyphicon-info-sign"></span>
Steam Profile
</a>
</div>
</div>
</div>
<div class="col-lg-12">
<h2 class="center">
Info
</h2>
<div class="alert alert-warning" ng-show="!info">
This Player is currently not connected to this server!
</div>
</div>
<div class="col-sm-4" ng-repeat="(key, value) in info">
<p>{{key}}: <span class="badge">{{value}}</span></p>
</div>
</div>
</div>