diff --git a/app.rb b/app.rb index a3f3e08..284f2c4 100644 --- a/app.rb +++ b/app.rb @@ -26,6 +26,10 @@ post '/' do end #HELPERS +def player_style(player) + 'background-color:green;color:white;font-weight: bold' if ['greggnic','mafiaman','atomaka'].include?(player) +end + def readable_number(value) numbers.each do |number, symbol| if value.to_f / number.to_f > 1 diff --git a/views/index.erb b/views/index.erb index 7ea2b84..97db16f 100644 --- a/views/index.erb +++ b/views/index.erb @@ -13,11 +13,11 @@ <% @raids.each do |raid| %> - <%= raid.attacker %> - <%= raid.defender %> + <%= raid.attacker %> + <%= raid.defender %> <%= readable_number(raid.soldiers) %> <%= readable_number(raid.money) %> - <%= raid.created_at %> + <%= raid.created_at.strftime('%H:%M on %m-%d-%Y') %> <% end %>