Show avatars in the online player list

This commit is contained in:
Trever Fischer
2012-04-18 12:01:09 -04:00
parent b22f7c5114
commit dfd7840e0b
2 changed files with 6 additions and 1 deletions

View File

@@ -409,3 +409,7 @@ fieldset {
#epicenter .staff-link a {
font-size: small;
}
#statbox .avatar {
padding: 5px;
}

View File

@@ -1,3 +1,4 @@
{% load minecraft %}
<div class="grid_4">
<div id="statbox" class="stat-box">
<h2 class="title">World Status</h2>
@@ -11,7 +12,7 @@
<ul>
{% if server.online_players %}
{% for player in server.online_players%}
<li>{{player}}</li>
<li><span class="avatar">{% avatar player.user 16 %}</span>{{player}}</li>
{% endfor %}
{% else %}
<li><em>Nobody...</em></li>