mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 06:19:38 +02:00
Refactor static file path and update theme selection text in Navbar; change localization keys for login and signup buttons
This commit is contained in:
parent
40cb5daa07
commit
44c0ffc1d7
3 changed files with 4 additions and 4 deletions
|
@ -132,7 +132,7 @@ USE_TZ = True
|
|||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
STATIC_ROOT = BASE_DIR / "staticfiles"
|
||||
STATIC_ROOT = BASE_DIR / "static"
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
|
|
|
@ -222,7 +222,7 @@
|
|||
on:click={() => (window.location.href = 'https://discord.gg/wRbQ9Egr8C')}
|
||||
>{$t('navbar.discord')}</button
|
||||
>
|
||||
<p class="font-bold m-4 text-lg">{$t('navbar.theme_selection')}</p>
|
||||
<p class="font-bold m-4 text-lg text-center">{$t('navbar.theme_selection')}</p>
|
||||
<form method="POST" use:enhance={submitUpdateTheme}>
|
||||
<li>
|
||||
<button formaction="/?/setTheme&theme=light"
|
||||
|
|
|
@ -46,10 +46,10 @@
|
|||
</button>
|
||||
{:else}
|
||||
<button on:click={() => goto('/login')} class="btn btn-primary">
|
||||
{$t('navbar.login')}
|
||||
{$t('auth.login')}
|
||||
</button>
|
||||
<button on:click={() => goto('/signup')} class="btn btn-neutral">
|
||||
{$t('navbar.signup')}
|
||||
{$t('auth.signup')}
|
||||
</button>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue