diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-22 01:50:18 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-22 01:50:18 -0400 |
commit | d75fe3934366ea5e2581df6111c6bccdb77d1e95 (patch) | |
tree | 9e8cc6059e564d2a3dbe6e724ed92a032bba3e40 /app/views | |
parent | 594f1388802476b236e8eaa622fbb5aec181a0a0 (diff) |
redesign of tournaments index and matches index
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/matches/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/tournaments/index.html.erb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index 08d5fd6..03427d8 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -1,7 +1,7 @@ <h1><%= @tournament.name %> - Matches</h1> -<table class="table"> +<table id="matches-table" class="table"> <thead> <tr> <th>Name</th> diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb index 7957042..eef9577 100644 --- a/app/views/tournaments/index.html.erb +++ b/app/views/tournaments/index.html.erb @@ -5,8 +5,8 @@ <%# Each tournament has a div for its listing %> <% @tournaments.each do |t| %> <div class="row tournament-listing"> - <div class="col-md-2 "><%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(t.hosts.first.email) + '?s=100&d=mm' %></div> - <div class="col-md-8"> + <div class="col-md-2 col-sm-3 col-xs-6"><%= image_tag 'http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(t.hosts.first.email) + '?s=100&d=mm' %></div> + <div class="col-md-8 col-sm-7 col-xs-6"> <%# "header" %> <%= link_to(t) do %><h3><%= t.name %></h3><% end %> <div class="row" style="margin-left:2%;"> @@ -23,7 +23,7 @@ </div> </div> </div> - <div class="col-md-2"> + <div class="col-md-2 col-sm-2 col-xs-2"> <% if signed_in? %> <% if !t.players.include?(current_user) %> <%= form_tag(tournament_path(t), method: "put") do %> |