mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-15 22:30:53 +00:00
Fixes error when viewing team pages when not logged in
This commit is contained in:
parent
277e660717
commit
29dc3e0e29
1 changed files with 12 additions and 10 deletions
|
@ -9,6 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% if cuser && cuser.teamers %>
|
||||||
<% if cuser.teamers.joining.count == 0 && @team.active %>
|
<% if cuser.teamers.joining.count == 0 && @team.active %>
|
||||||
<%= form_for @teamer do |f| %>
|
<%= form_for @teamer do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
<% elsif cuser.teamers.joining.first.team != @team %>
|
<% elsif cuser.teamers.joining.first.team != @team %>
|
||||||
<%= link_to 'Request To Join', edit_teamer_path("teamer" => cuser.teamers.joining.first), method: :get,confirm: "You have already requested to join #{cuser.teamers.joining.first.team}. Do you want to request to join #{@team} instead?", class: 'button' %>
|
<%= link_to 'Request To Join', edit_teamer_path("teamer" => cuser.teamers.joining.first), method: :get,confirm: "You have already requested to join #{cuser.teamers.joining.first.team}. Do you want to request to join #{@team} instead?", class: 'button' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div id="team" class="tabbed">
|
<div id="team" class="tabbed">
|
||||||
<ul id="team-nav" class="tabs">
|
<ul id="team-nav" class="tabs">
|
||||||
|
|
Loading…
Reference in a new issue