diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 10:19:22 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-28 10:19:22 -0400 |
commit | 55c6deae283b80adc5b664fd1ca592028fed10b0 (patch) | |
tree | 174c61eb8e0b576910a7a92007ce00d181209e7c | |
parent | 29df4136ec06cebcc8dc8965dcb790e6531dea5e (diff) |
tidy views/common/_show_tournament.html.erb
-rw-r--r-- | app/views/common/_show_tournament.html.erb | 6 |
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 5659947..454377e 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -1,7 +1,7 @@ <div class="row tournament-listing"> <div class="col-md-2 col-sm-3 col-xs-6"> - <%= image_tag(target.game.name.downcase.tr(" ", "_").tr(",", "") + ".png", class: "t-image") %> - <p class="t-game"> <%= Game.find(target.game_id).name %></p> + <%= image_tag(target.game.name.parameterize.underscore + ".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"> <%# "header" %> @@ -40,4 +40,4 @@ <% end %> <% end %> </div> -</div>
\ No newline at end of file +</div> |