a TON of bugfixes and new features
This commit is contained in:
12
app/views/layouts/_footer.html.erb
Normal file
12
app/views/layouts/_footer.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<% users = User.select{|u| u.online?} %>
|
||||
<div id="footer">
|
||||
<div id="online-users">
|
||||
<p title="Seen within the last 5 minutes">Users currently online: <%= users.length %></p>
|
||||
<% users.each do |u| %>
|
||||
<%= render partial: "users/username", locals: { user: u } %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="note">
|
||||
Website made by <a href="/users/2">Redstone Sheep</a> with design by <a href="/users/12">ColoArtz</a>.
|
||||
</div>
|
||||
</div>
|
||||
@@ -11,11 +11,12 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="mobile-info">We don't have a mobile style yet. It might look shitty.<br>Tip: Hold your device in landscape mode.</div>
|
||||
<%= render "/layouts/head" %>
|
||||
<%= render partial: "/layouts/head" %>
|
||||
<div id="main-content">
|
||||
<%= "<div id='alert' class='flash'>#{alert}</div>".html_safe if alert %>
|
||||
<%= "<div id='notice' class='flash'>#{notice}</div>".html_safe if notice %>
|
||||
<%= "<div class='flash alert'>#{alert}</div>".html_safe if alert %>
|
||||
<%= "<div class='flash notice'>#{notice}</div>".html_safe if notice %>
|
||||
<%= yield %>
|
||||
</div>
|
||||
<%= render partial: "/layouts/footer" %>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user