summaryrefslogtreecommitdiff
path: root/app/views/common/_show_tournament.html.erb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-27 20:53:05 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-27 20:53:05 -0400
commitdc9c2855c044f18b82a073a6067c81130a99f76a (patch)
treec7b29dc2c7b5236f5a739dafe13f36be4c8e339b /app/views/common/_show_tournament.html.erb
parentfbdb313c53b836deb1b4151169b32656fd1f70da (diff)
parente526f5b62b3dc91ca30eb0382c071227b74baddf (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/common/_show_tournament.html.erb')
-rw-r--r--app/views/common/_show_tournament.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb
index 280d59d..a1d01d2 100644
--- a/app/views/common/_show_tournament.html.erb
+++ b/app/views/common/_show_tournament.html.erb
@@ -1,6 +1,6 @@
<div class="row tournament-listing">
<div class="col-md-2 col-sm-3 col-xs-6">
- <%= image_tag(target.game.name.downcase.tr(" ", "_") + ".png", class: "t-image") %>
+ <%= image_tag(target.game.name.downcase.tr(" ", "_").tr(",", "") + ".png", 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">
@@ -8,8 +8,8 @@
<%= link_to(target) do %><h3><%= target.name %></h3><% end %>
<div class="row" style="margin-left:2%;">
<div class="col-md-4 host">
- Hosted by: <%= target.hosts.first.name %>
- <%= image_tag('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.hosts.first.email) + '?s=45&d=identicon', class: "t-image") %>
+ <%= image_tag('http://www.gravatar.com/avatar/' + Digest::MD5.hexdigest(target.hosts.first.email) + '?s=45&d=identicon') %>
+ <%= target.hosts.first.name %>'s tournament
</div>
<div class="col-md-4 things">
<p> Players per team: <%= target.min_players_per_team %></p>