Added Who's Playing? screen

This commit is contained in:
MrYummy
2017-05-28 17:46:54 -04:00
parent dfb1ed9185
commit 252dc5bdfa
6 changed files with 32 additions and 3 deletions

View File

@@ -31,6 +31,9 @@
<li>
<%= link_to "Donate", donate_statics_path, class: ("active" if con == "statics" && params[:action] == "donate") %>
</li>
<li>
<%= link_to "Who's Playing?", online_statics_path, class: ("active" if con == "statics" && params[:action] == "online") %>
</li>
</ul>
</div>
<div id="userbar">

View File

@@ -0,0 +1,17 @@
<% title "Who's Playing?" %>
<h1>These players are currently playing on Redstoner:</h1>
<div id="userlist">
<% @players.each do |u| %>
<div class="list-user">
<%= link_to(u.avatar(64), u) %>
<div class="detail">
<%= render partial: "users/username", locals: { user: u } %><br>
<i><%= u.ign %></i>
<% unless u.id %>
<br><i>(Not signed up)</i>
<% end %>
</div>
</div>
<% end %>
</div>