diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-07 10:58:55 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-07 10:58:55 -0400 |
commit | f3bd88ed2f517175e2d428bebafd28ad6ddd5b56 (patch) | |
tree | 1bc379567f3f6130e4aabbf815030f5f67a953f7 | |
parent | c8b4045ba1ca02e750d6e8b15a1ced47b1930217 (diff) |
Used Ternary operation to blank out current user in the collect of show.html in peer review.
-rw-r--r-- | app/views/matches/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index c92aea3..e8eaaa7 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -87,7 +87,7 @@ <% @match.teams.each do |team| %> <% if team.users.include?(current_user) %> <ol id="boxes" class="sortable"> - <% team.users.collect{|u| u.user_name}.each do |k| %> + <% team.users.collect { |u| (u.user_name == @current_user) ? u.user_name : "" }.each do |k| %> <li><%= k%> <br> <% if (@tournament.game_id == 1) %> |