<NME> enter.blade.php
<BEF> {{--
    Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
    See the LICENCE file in the repository root for full licence text.
--}}
@extends('contests.base')

@section('contest-content')
    <div class="contest__description">{!! markdown($contestMeta->description_enter, 'contest') !!}</div>
    @include('contests._countdown', ['deadline' => $contestMeta->currentPhaseEndDate()])
    @if (!Auth::check())
      <div class='contest__voting-notice contest__voting-notice--padding'>{{osu_trans('contest.entry.login_required')}}</div>
    @else
      @if (Auth::user()->isSilenced() || Auth::user()->isRestricted())
        <div class='contest__voting-notice contest__voting-notice--padding'>{{osu_trans('contest.entry.silenced_or_restricted')}}</div>
      @else
        @if (!$contestMeta->isSubmissionOpen())
          @if ($contestMeta->entry_starts_at !== null && $contestMeta->entry_starts_at->isPast())
            <div class='contest__voting-notice'>{{osu_trans('authorization.contest.entry.over')}}</div>
            <div class='js-react--userContestEntry'></div>
          @else
            <div class='contest__voting-notice contest__voting-notice--padding'>{{osu_trans('contest.entry.preparation')}}</div>
          @endif
        @else
          <div class='js-react--userContestEntry'></div>
        @endif
      @endif
            <div class='contest__voting-ended'>{{trans('contest.entry.preparation')}}</div>
        @endif
    @else
        <div class='js-react--userContestEntry'></div>
    @endif
@endsection


<MSG> Merge pull request #755 from ppy/nekodex/contest-entry

Fixes for contest entry system
<DFF> @@ -27,7 +27,15 @@
             <div class='contest__voting-ended'>{{trans('contest.entry.preparation')}}</div>
         @endif
     @else
-        <div class='js-react--userContestEntry'></div>
+        @if (!Auth::check())
+          <div class='contest__voting-ended'>{{trans('contest.entry.login_required')}}</div>
+        @else
+          @if (Auth::user()->isSilenced() || Auth::user()->isRestricted())
+            <div class='contest__voting-ended'>{{trans('contest.entry.silenced_or_restricted')}}</div>
+          @else
+            <div class='js-react--userContestEntry'></div>
+          @endif
+        @endif
     @endif
 @endsection
 

{'addition_count': 9, 'commit_subject': 'Merge pull request #755 from ppy/nekodex/contest-entry', 'deletion_count': 1, 'file_extension': '.php', 'lang': 'blade', 'license': 'agpl-3.0', 'repo_name': 'ppy/osu-web'}