mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-27 19:50:56 +00:00
Update contester header
This commit is contained in:
parent
2627e43e26
commit
df719dee40
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,6 @@ class Contest < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_join?(cuser)
|
def can_join?(cuser)
|
||||||
byebug
|
|
||||||
cuser and !cuser&.banned?(Ban::TYPE_LEAGUE) and \
|
cuser and !cuser&.banned?(Ban::TYPE_LEAGUE) and \
|
||||||
(cuser&.lead_teams.not_in_contest(self).exists?) and \
|
(cuser&.lead_teams.not_in_contest(self).exists?) and \
|
||||||
Contest.joinable.where(id: self).exists?
|
Contest.joinable.where(id: self).exists?
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<%= link_to (h @contester.team.name), team_url(@contester.team, team: 'matches', anchor: "contest_#{@contester.contest.id}") %>
|
<%= link_to (h @contester.team.name), team_url(@contester.team, team: 'matches', anchor: "contest_#{@contester.contest.id}") %>
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
<h4 class="fancy">in <%= namelink @contester.contest %></h4>
|
||||||
|
|
||||||
<% if @contester.team.logo %>
|
<% if @contester.team.logo %>
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
|
@ -12,7 +13,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4 class="nane"><%= namelink @contester.contest %></h4>
|
|
||||||
|
|
||||||
<div id="matches" class="tabbed">
|
<div id="matches" class="tabbed">
|
||||||
<ul id="matches-nav" class="tabs">
|
<ul id="matches-nav" class="tabs">
|
||||||
|
|
Loading…
Reference in a new issue