From df719dee4072cedddf235a8d0f534a32f88d442c Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Mon, 30 Mar 2020 02:18:44 +0300 Subject: [PATCH] Update contester header --- app/models/contest.rb | 1 - app/views/contesters/show.html.erb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/contest.rb b/app/models/contest.rb index f7b6094..4ef692b 100644 --- a/app/models/contest.rb +++ b/app/models/contest.rb @@ -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? diff --git a/app/views/contesters/show.html.erb b/app/views/contesters/show.html.erb index 22b63ee..4e6d45b 100644 --- a/app/views/contesters/show.html.erb +++ b/app/views/contesters/show.html.erb @@ -4,6 +4,7 @@ <%= link_to (h @contester.team.name), team_url(@contester.team, team: 'matches', anchor: "contest_#{@contester.contest.id}") %> +

in <%= namelink @contester.contest %>

<% if @contester.team.logo %> -

<%= namelink @contester.contest %>

+