templates!
parent
7eb260bfcf
commit
f0f6f2c842
|
|
@ -1,19 +1,21 @@
|
||||||
|
{{ define "files" }}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<header>
|
<header>
|
||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
{{ template "imports" . }}
|
{{ template "_import" . }}
|
||||||
</header>
|
</header>
|
||||||
<body class="lr_fullscreen tb_fullscreen" onload="init(); return false;">
|
<body class="lr_fullscreen tb_fullscreen" onload="init(); return false;">
|
||||||
<br>
|
<br>
|
||||||
<div class="rows">
|
<div class="rows">
|
||||||
{{ template "searchbar" . }}
|
{{ template "_searchbar" . }}
|
||||||
<div class="columns thic_flex tb_buffer">
|
<div class="columns thic_flex tb_buffer">
|
||||||
{{ template "filetree" . }}
|
{{ template "_filetree" . }}
|
||||||
<div class="thic_flex lr_fullscreen" style="margin-left: 1em; width: 5px;">
|
<div class="thic_flex lr_fullscreen" style="margin-left: 1em; width: 5px;">
|
||||||
{{ template "editor" . }}
|
{{ template "_editor" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ define "_editor" }}
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.css">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/easymde/dist/easymde.min.js"></script>
|
||||||
<style>
|
<style>
|
||||||
|
|
@ -201,3 +202,4 @@
|
||||||
status: ["lines", "words", "cursor"],
|
status: ["lines", "words", "cursor"],
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
{{ end }}
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
|
{{ define "_filetree" }}
|
||||||
<div>
|
<div>
|
||||||
|
My file tree
|
||||||
<!-- TODO {{ .Branches }} -->
|
<!-- TODO {{ .Branches }} -->
|
||||||
{{ range $key, $value := .Branches }}
|
{{ range $key, $value := .Branches }}
|
||||||
<!-- TODO {{ $key }}{{ $value }} -->
|
<!-- TODO {{ $key }}{{ $value }} -->
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{ define "_import" }}
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
@ -13,3 +14,4 @@
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css">
|
||||||
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
|
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
|
||||||
-->
|
-->
|
||||||
|
{{ end }}
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
{{ define "_searchbar" }}
|
||||||
<form class="columns" action="/ui/search" method="GET">
|
<form class="columns" action="/ui/search" method="GET">
|
||||||
<input class="thic_flex" type="text" name="searchbox" placeholder="space delimited search regexp"/>
|
<input class="thic_flex" type="text" name="searchbox" placeholder="space delimited search regexp"/>
|
||||||
<input class="info lil_btn" type="submit" value="search"/>
|
<input class="info lil_btn" type="submit" value="search"/>
|
||||||
</form>
|
</form>
|
||||||
|
{{ end }}
|
||||||
Loading…
Reference in New Issue