Skip to content

Commit

Permalink
adding link to the opponent team
Browse files Browse the repository at this point in the history
  • Loading branch information
ger619 committed Apr 22, 2024
1 parent 72fd83e commit 1563c4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/opponent/_single_match.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
<%= opp.score_two %>
</div>
<div class="justify-center md:flex flex-col">
<a href="<%= opp.opponent_team.team_url %>" target = "_blank">
<% if opp.opponent_team.team_badge.attached? %>
<%= image_tag (opp.opponent_team.team_badge), class: "w-40 justify-center content-center p-4" %>
<% end %>

<p class="text-center md:text-xl font-semibold capitalize"><%= opp.opponent_team.name %></p>
</a>
</div>
</div>
<% if current_user && current_user.role === 'moderator' %>
Expand Down

0 comments on commit 1563c4c

Please sign in to comment.