Skip to content

Commit

Permalink
add active button on the players on all
Browse files Browse the repository at this point in the history
  • Loading branch information
ger619 committed Apr 24, 2024
1 parent 8e92e32 commit d512a2d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion app/views/team/_coach.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<h1 class="text-4xl pb-4 md:pb-0 md:p-4 font-bold">Coaches</h1>
<hr class="ml-4 w-[6%] bg-[#FAE115] h-[10px] mb-2">
<div class="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 flex-col text-center p-2">

<% @teams.each do |team| %>
<% if team.position === "Coach" %>
<% unless (current_user.nil? || current_user === "user") && team.active ==! true%>
Expand Down
1 change: 0 additions & 1 deletion app/views/team/_forward.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<h1 class="text-4xl pb-4 md:pb-0 md:p-4 font-bold">Forward</h1>
<hr class="ml-4 w-[6%] bg-[#FAE115] h-[10px] mb-2">
<div class="grid lg:grid-cols-3 xl:grid-cols-4 md:grid-cols-2 flex-col text-center p-2">

<% @teams.each do |team| %>
<% if team.position === "Striker" %>
<% unless (current_user.nil? || current_user === "user") && team.active ==! true%>
Expand Down
8 changes: 1 addition & 7 deletions app/views/team/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@
<% end %>
</div>
</div>



<%= render "team/goalkeeper" %>
<%= render "team/goalkeeper" %>
<%= render "team/defenders" %>
<%= render "team/midfielders" %>
<%= render "team/forward" %>
<%= render "team/coach" %>



</div>

0 comments on commit d512a2d

Please sign in to comment.