[SLOYD] Playground add header

This commit is contained in:
Milovann Yanatchkov 2024-04-09 16:01:03 +02:00
parent 38d4eca60a
commit 7a09e9ca7e
3 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,13 @@
<div class="secondary-nav">
<overflow-menu class="ui container secondary pointing tabular top attached borderless menu tw-pt-0 tw-my-0">
<div class="overflow-menu-items">
<a class="{{if .IsRepoFlagsPage}}active {{end}}item" href="{{AppSubUrl}}/playground">
{{svg "octicon-stack"}} Playground
</a>
<a class="{{if .IsRepoFlagsPage}}active {{end}}item" href="{{AppSubUrl}}/playground/repl-iframe">
{{svg "octicon-terminal"}} Repl
</a>
</div>
</overflow-menu>
</div>

View file

@ -1,4 +1,7 @@
{{template "base/head" .}}
{{template "playground/header" .}}
{{if .IsSigned}}
User : {{.UserName}}
{{else}}

View file

@ -1,10 +1,12 @@
{{template "base/head" .}}
{{template "playground/header" .}}
<iframe
src="https://jupyterlite.github.io/demo/repl/index.html?kernel=python"
width="100%"
height="100%"
height="97%"
></iframe>