mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 14:29:36 +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
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
STATIC_ROOT = BASE_DIR / "staticfiles"
|
STATIC_ROOT = BASE_DIR / "static"
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
|
|
|
@ -222,7 +222,7 @@
|
||||||
on:click={() => (window.location.href = 'https://discord.gg/wRbQ9Egr8C')}
|
on:click={() => (window.location.href = 'https://discord.gg/wRbQ9Egr8C')}
|
||||||
>{$t('navbar.discord')}</button
|
>{$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}>
|
<form method="POST" use:enhance={submitUpdateTheme}>
|
||||||
<li>
|
<li>
|
||||||
<button formaction="/?/setTheme&theme=light"
|
<button formaction="/?/setTheme&theme=light"
|
||||||
|
|
|
@ -46,10 +46,10 @@
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
{:else}
|
||||||
<button on:click={() => goto('/login')} class="btn btn-primary">
|
<button on:click={() => goto('/login')} class="btn btn-primary">
|
||||||
{$t('navbar.login')}
|
{$t('auth.login')}
|
||||||
</button>
|
</button>
|
||||||
<button on:click={() => goto('/signup')} class="btn btn-neutral">
|
<button on:click={() => goto('/signup')} class="btn btn-neutral">
|
||||||
{$t('navbar.signup')}
|
{$t('auth.signup')}
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue