add spacing to tables
This commit is contained in:
parent
04d05d7474
commit
68a1d5ef2c
|
@ -67,3 +67,12 @@ footer {
|
|||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
table td {
|
||||
height: 1.5rem;
|
||||
}
|
||||
|
||||
li:not(:last-child) {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
class PagesController < ApplicationController
|
||||
def index
|
||||
@players = Player.all
|
||||
end
|
||||
|
||||
def teampicker
|
||||
|
@ -11,7 +10,7 @@ class PagesController < ApplicationController
|
|||
|
||||
private
|
||||
def maketeams
|
||||
r = Player.where(strikes: 0...3).order(Arel.sql("RANDOM()")).to_a
|
||||
r = Player.order(Arel.sql("RANDOM()")).to_a
|
||||
|
||||
teams = []
|
||||
while r.size > 0
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<h1>teampicker</h1>
|
||||
|
||||
<% @groups.each.with_index(1) do |slice, i| %>
|
||||
<h2>Team <%= i %></h2>
|
||||
<p>Table: <%= @machines[i - 1].name %></p>
|
||||
<% @groups.each.with_index do |slice, i| %>
|
||||
<h2><%= @machines[i].name %></h2>
|
||||
<ol>
|
||||
<% slice.each do |player| %>
|
||||
<li><%= link_to player.name, edit_player_path(player) %></li>
|
||||
|
|
Loading…
Reference in New Issue