diff --git a/src/routes/journals/+layout.svelte b/src/routes/journals/+layout.svelte index 6a918053..3482c02b 100644 --- a/src/routes/journals/+layout.svelte +++ b/src/routes/journals/+layout.svelte @@ -112,50 +112,6 @@ if (browser) { -{#if $ae_loc.administrator_access && 1==2} - -{/if} - - -
+
{@render children()}
diff --git a/src/routes/journals/+page.svelte b/src/routes/journals/+page.svelte index 2ab75bf6..985ba78c 100644 --- a/src/routes/journals/+page.svelte +++ b/src/routes/journals/+page.svelte @@ -140,6 +140,7 @@ async function create_journal() { +

diff --git a/src/routes/journals/[journal_id]/+layout.svelte b/src/routes/journals/[journal_id]/+layout.svelte index 3d8897c4..84a9aa72 100644 --- a/src/routes/journals/[journal_id]/+layout.svelte +++ b/src/routes/journals/[journal_id]/+layout.svelte @@ -97,13 +97,13 @@ async function handle_update_journal() { +
+ + + + + + + + @@ -638,21 +712,21 @@ $effect(() => {
{ - if ($ae_loc.trusted_access) { - // Toggle edit mode - $journals_loc.entry.edit = !$journals_loc.entry.edit; - $journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id] = $journals_loc.entry.edit; - } + if ($ae_loc.trusted_access) { + // Toggle edit mode + $journals_loc.entry.edit = !$journals_loc.entry.edit; + $journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id] = $journals_loc.entry.edit; + } }} role="button" tabindex="0" class:hidden={!$ae_loc.trusted_access || $journals_loc.entry.edit_kv[$lq__journal_entry_obj?.journal_entry_id]} class="w-full font-mono shadow-md rounded-lg border-gray-500 bg-gray-100 p-2" > -
+
{@html $lq__journal_entry_obj?.content_md_html} -
+
{