An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(ui): hide already registered button when there are 0 users (#7918)
Dominic Schmidabd2df312c1a
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.phpindex cdfa52a98f..0cf1a27723 100644--- a/resources/views/auth/register.blade.php+++ b/resources/views/auth/register.blade.php@@ -73,21 +73,23 @@ $email = getOldOrLocal('email', '[email protected]');</x-forms.button></form>- <div class="relative my-6">- <div class="absolute inset-0 flex items-center">- <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>- </div>- <div class="relative flex justify-center text-sm">- <span class="px-2 bg-gray-50 dark:bg-base text-neutral-500 dark:text-neutral-400">- Already have an account?- </span>+ @if (!$isFirstUser)+ <div class="relative my-6">+ <div class="absolute inset-0 flex items-center">+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>+ </div>+ <div class="relative flex justify-center text-sm">+ <span class="px-2 bg-gray-50 dark:bg-base text-neutral-500 dark:text-neutral-400">+ Already have an account?+ </span>+ </div></div>- </div>- <a href="/login"- class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">- {{ __('auth.already_registered') }}- </a>+ <a href="{{ route('login') }}"+ class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">+ {{ __('auth.already_registered') }}+ </a>+ @endif</div></div></div>