Update contester header

This commit is contained in:
Ari Timonen 2020-03-30 02:18:44 +03:00
parent 2627e43e26
commit df719dee40
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,6 @@ class Contest < ActiveRecord::Base
end
def can_join?(cuser)
byebug
cuser and !cuser&.banned?(Ban::TYPE_LEAGUE) and \
(cuser&.lead_teams.not_in_contest(self).exists?) and \
Contest.joinable.where(id: self).exists?

View file

@ -4,6 +4,7 @@
<%= link_to (h @contester.team.name), team_url(@contester.team, team: 'matches', anchor: "contest_#{@contester.contest.id}") %>
</span>
</h1>
<h4 class="fancy">in <%= namelink @contester.contest %></h4>
<% if @contester.team.logo %>
<div class="logo">
@ -12,7 +13,7 @@
<% end %>
</div>
<h4 class="nane"><%= namelink @contester.contest %></h4>
<div id="matches" class="tabbed">
<ul id="matches-nav" class="tabs">