summaryrefslogtreecommitdiff
path: root/app/views/common/_show_tournament.html.erb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-23 20:38:16 -0400
committertkimia <tkimia@purdue.edu>2014-04-23 20:38:16 -0400
commit190bfeb784f9760326c54069d2dbf875a820c6ec (patch)
tree1c337f0940cce0bb686aa442e9d3023b6ce3f751 /app/views/common/_show_tournament.html.erb
parentcba4c47e7cca06434742fc5fd282c40973c546d1 (diff)
tournaments now have their game type when displayed. Not sure why I hadn't thought of that earlier
Diffstat (limited to 'app/views/common/_show_tournament.html.erb')
-rw-r--r--app/views/common/_show_tournament.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb
index 89d8f53..0f60fad 100644
--- a/app/views/common/_show_tournament.html.erb
+++ b/app/views/common/_show_tournament.html.erb
@@ -1,5 +1,7 @@
<div class="row tournament-listing">
- <div class="col-md-2 col-sm-3 col-xs-6"><%= image_tag ('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.hosts.first.email) + '?s=100&d=mm') %></div>
+ <div class="col-md-2 col-sm-3 col-xs-6"><%= image_tag('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.hosts.first.email) + '?s=100&d=mm', class: "t-image") %>
+ <p class="t-game"> <%= Game.find(target.game_id).name %></p>
+ </div>
<div class="col-md-8 col-sm-7 col-xs-6">
<%# "header" %>
<%= link_to(target) do %><h3><%= target.name %></h3><% end %>