{#if $cannot_load_offline}
{@html $t("doc.cannot_load_offline")}
{$t("pages.user_panel.title")}
.
{:else}
{ const { inView, entry, scrollDirection, observer, node} = event.detail; if ($cur_branch) { set_header_in_view(inView); } if (inView) nav_bar_reset_newest(); }}>
{#if $can_have_header}
{#if $header_icon}
{/if} {#if $cur_tab_view_or_edit && $cur_tab_doc_can_edit}
{set_view_or_edit(false);}} title={$t("doc.header.buttons.edit")}>
{/if} {#if !$header_title}
{$cur_tab.doc.nuri.substring(2,9)}
{/if} {#if !$cur_tab_view_or_edit}
{#if !$header_title}
{$t($edit_header_button)}
{/if} {/if} {#if $header_title}
{$header_title}
{/if}
{#if $header_description}
{$header_description}
{/if} {/if} {#if commits} {#await commits.load()}
{$t("connectivity.loading")}...
{:then} {#if $cur_app} {#await load_official_app($cur_app)}
{$t("connectivity.loading")}...
{:then app}
{/await} {:else}
{$t("connectivity.loading")}...
{/if} {/await} {:else}
{$t("connectivity.loading")}...
{/if}
{/if}