[SLOYD] Playground add header
This commit is contained in:
parent
38d4eca60a
commit
7a09e9ca7e
3 changed files with 19 additions and 1 deletions
13
templates/playground/header.tmpl
Normal file
13
templates/playground/header.tmpl
Normal 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>
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{{template "base/head" .}}
|
{{template "base/head" .}}
|
||||||
|
|
||||||
|
{{template "playground/header" .}}
|
||||||
|
|
||||||
{{if .IsSigned}}
|
{{if .IsSigned}}
|
||||||
User : {{.UserName}}
|
User : {{.UserName}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
|
|
||||||
{{template "base/head" .}}
|
{{template "base/head" .}}
|
||||||
|
|
||||||
|
{{template "playground/header" .}}
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
src="https://jupyterlite.github.io/demo/repl/index.html?kernel=python"
|
src="https://jupyterlite.github.io/demo/repl/index.html?kernel=python"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="97%"
|
||||||
></iframe>
|
></iframe>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue