diff --git a/app/assets/stylesheets/components/_tables.scss b/app/assets/stylesheets/components/_tables.scss index 3d2e0f0..2a2330a 100644 --- a/app/assets/stylesheets/components/_tables.scss +++ b/app/assets/stylesheets/components/_tables.scss @@ -41,4 +41,8 @@ table.striped > tbody { > tr:nth-child(2n) td { background-color: transparentize($light-blue, 0.9); } + + .actions { + text-align: right; + } } diff --git a/app/views/challenges/index.html.erb b/app/views/challenges/index.html.erb index 5888c65..c69a461 100644 --- a/app/views/challenges/index.html.erb +++ b/app/views/challenges/index.html.erb @@ -1,25 +1,21 @@ -

Listing challenges

+

Listing Challenges

- +
- - - + <% @challenges.each do |challenge| %> - - - + <% end %>
Challenger Recipient Match timeDefault timeServer Status
<%= link_to "[X]", challenge, :confirm => 'Are you sure?', :method => :delete %> <%= namelink challenge.contester1.team %> <%= namelink challenge.contester2.team %> <%= link_to (shorttime challenge.match_time), challenge %><%= challenge.mandatory ? shorttime(challenge.default_time) : "--" %><%= h challenge.server %> <%= challenge.statuses[challenge.status] %><%= link_to icon('times'), challenge, confirm: 'Are you sure?', method: :delete %>