From 3de185e5a55e6dc3d9072b683f2d4072213c0b5d Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Sun, 27 Apr 2014 02:46:11 +0100 Subject: [PATCH] Improve admin challenge listing --- app/assets/stylesheets/components/_tables.scss | 4 ++++ app/views/challenges/index.html.erb | 12 ++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) 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 %>