Swap submit and show solution
This commit is contained in:
parent
2ef050d6fc
commit
e7a3a093b7
1 changed files with 7 additions and 8 deletions
|
@ -82,6 +82,13 @@ import Odevzdavatko from "./Odevzdavatko.svelte";
|
||||||
</div>
|
</div>
|
||||||
{@html task.description}
|
{@html task.description}
|
||||||
|
|
||||||
|
<hr class="clearfloat" />
|
||||||
|
{#if isLoggedIn()}
|
||||||
|
<Odevzdavatko id={task.id} />
|
||||||
|
{:else}
|
||||||
|
<p class="zs-warning">Pro odevzdávání je potřeba se <a href={loginUrl}>přihlásit</a>.</p>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<hr class="clearfloat" />
|
<hr class="clearfloat" />
|
||||||
|
|
||||||
<div class="solution">
|
<div class="solution">
|
||||||
|
@ -100,14 +107,6 @@ import Odevzdavatko from "./Odevzdavatko.svelte";
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if !showSolution}
|
|
||||||
<hr class="clearfloat" />
|
|
||||||
{#if isLoggedIn()}
|
|
||||||
<Odevzdavatko id={task.id} />
|
|
||||||
{:else}
|
|
||||||
<p class="zs-warning">Pro odevzdávání je potřeba se <a href={loginUrl}>přihlásit</a>.</p>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{/await}
|
{/await}
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Reference in a new issue