summaryrefslogtreecommitdiff
path: root/app/views/statics/online.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/statics/online.html.erb')
-rw-r--r--app/views/statics/online.html.erb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/statics/online.html.erb b/app/views/statics/online.html.erb
new file mode 100644
index 0000000..8c31182
--- /dev/null
+++ b/app/views/statics/online.html.erb
@@ -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>
+