aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-05-05 21:01:25 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-05-05 21:01:25 +0200
commitce911df583e384d86018e42f9548cdf33d1c1549 (patch)
treec8bbc3ff4dce25ffacfe493e865378c6e6d59e3a /templates
parent3be25766027178489a0c5f1f82e65f9be518c79c (diff)
downloadcerrado-ce911df583e384d86018e42f9548cdf33d1c1549.tar.gz
cerrado-ce911df583e384d86018e42f9548cdf33d1c1549.tar.bz2
cerrado-ce911df583e384d86018e42f9548cdf33d1c1549.zip
ui: Add navbar
Diffstat (limited to 'templates')
-rw-r--r--templates/base.qtpl14
-rw-r--r--templates/base.qtpl.go138
2 files changed, 86 insertions, 66 deletions
diff --git a/templates/base.qtpl b/templates/base.qtpl
index 1683981..6bef986 100644
--- a/templates/base.qtpl
+++ b/templates/base.qtpl
@@ -25,12 +25,22 @@ Page prints a page implementing Page interface.
<html lang="en">
<head>
<meta charset="utf-8">
- <title>img | {%= p.Title() %}</title>
+ <title>cerrado | {%= p.Title() %}</title>
<link rel="stylesheet" href="/static/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
- <div>
+ <nav class="navbar navbar-expand bg-body-tertiary">
+ <div class="container-fluid">
+ <div class="collapse navbar-collapse">
+ <div class="navbar-nav">
+ <a class="nav-link" href="/git">git</a>
+ <a class="nav-link" href="/list">list</a>
+ </div>
+ </div>
+ </div>
+ </nav>
+ <div class="container">
{%= p.Content() %}
</div>
</body>
diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go
index 8d93fa8..ffee940 100644
--- a/templates/base.qtpl.go
+++ b/templates/base.qtpl.go
@@ -63,7 +63,7 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
<html lang="en">
<head>
<meta charset="utf-8">
- <title>img | `)
+ <title>cerrado | `)
//line base.qtpl:28
p.StreamTitle(qw422016)
//line base.qtpl:28
@@ -72,146 +72,156 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) {
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
- <div>
+ <nav class="navbar navbar-expand bg-body-tertiary">
+ <div class="container-fluid">
+ <div class="collapse navbar-collapse">
+ <div class="navbar-nav">
+ <a class="nav-link" href="/git">git</a>
+ <a class="nav-link" href="/list">list</a>
+ </div>
+ </div>
+ </div>
+ </nav>
+ <div class="container">
`)
-//line base.qtpl:34
+//line base.qtpl:44
p.StreamContent(qw422016)
-//line base.qtpl:34
+//line base.qtpl:44
qw422016.N().S(`
</div>
</body>
`)
-//line base.qtpl:37
+//line base.qtpl:47
p.StreamScript(qw422016)
-//line base.qtpl:37
+//line base.qtpl:47
qw422016.N().S(`
</html>
`)
-//line base.qtpl:39
+//line base.qtpl:49
}
-//line base.qtpl:39
+//line base.qtpl:49
func WritePageTemplate(qq422016 qtio422016.Writer, p Page) {
-//line base.qtpl:39
+//line base.qtpl:49
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:39
+//line base.qtpl:49
StreamPageTemplate(qw422016, p)
-//line base.qtpl:39
+//line base.qtpl:49
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:39
+//line base.qtpl:49
}
-//line base.qtpl:39
+//line base.qtpl:49
func PageTemplate(p Page) string {
-//line base.qtpl:39
+//line base.qtpl:49
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:39
+//line base.qtpl:49
WritePageTemplate(qb422016, p)
-//line base.qtpl:39
+//line base.qtpl:49
qs422016 := string(qb422016.B)
-//line base.qtpl:39
+//line base.qtpl:49
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:39
+//line base.qtpl:49
return qs422016
-//line base.qtpl:39
+//line base.qtpl:49
}
-//line base.qtpl:41
+//line base.qtpl:51
type BasePage struct{}
-//line base.qtpl:42
+//line base.qtpl:52
func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) {
-//line base.qtpl:42
+//line base.qtpl:52
qw422016.N().S(`Empty`)
-//line base.qtpl:42
+//line base.qtpl:52
}
-//line base.qtpl:42
+//line base.qtpl:52
func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) {
-//line base.qtpl:42
+//line base.qtpl:52
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:42
+//line base.qtpl:52
p.StreamTitle(qw422016)
-//line base.qtpl:42
+//line base.qtpl:52
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:42
+//line base.qtpl:52
}
-//line base.qtpl:42
+//line base.qtpl:52
func (p *BasePage) Title() string {
-//line base.qtpl:42
+//line base.qtpl:52
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:42
+//line base.qtpl:52
p.WriteTitle(qb422016)
-//line base.qtpl:42
+//line base.qtpl:52
qs422016 := string(qb422016.B)
-//line base.qtpl:42
+//line base.qtpl:52
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:42
+//line base.qtpl:52
return qs422016
-//line base.qtpl:42
+//line base.qtpl:52
}
-//line base.qtpl:43
+//line base.qtpl:53
func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) {
-//line base.qtpl:43
+//line base.qtpl:53
qw422016.N().S(`HelloWorld`)
-//line base.qtpl:43
+//line base.qtpl:53
}
-//line base.qtpl:43
+//line base.qtpl:53
func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) {
-//line base.qtpl:43
+//line base.qtpl:53
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:43
+//line base.qtpl:53
p.StreamBody(qw422016)
-//line base.qtpl:43
+//line base.qtpl:53
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:43
+//line base.qtpl:53
}
-//line base.qtpl:43
+//line base.qtpl:53
func (p *BasePage) Body() string {
-//line base.qtpl:43
+//line base.qtpl:53
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:43
+//line base.qtpl:53
p.WriteBody(qb422016)
-//line base.qtpl:43
+//line base.qtpl:53
qs422016 := string(qb422016.B)
-//line base.qtpl:43
+//line base.qtpl:53
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:43
+//line base.qtpl:53
return qs422016
-//line base.qtpl:43
+//line base.qtpl:53
}
-//line base.qtpl:44
+//line base.qtpl:54
func (p *BasePage) StreamScript(qw422016 *qt422016.Writer) {
-//line base.qtpl:44
+//line base.qtpl:54
}
-//line base.qtpl:44
+//line base.qtpl:54
func (p *BasePage) WriteScript(qq422016 qtio422016.Writer) {
-//line base.qtpl:44
+//line base.qtpl:54
qw422016 := qt422016.AcquireWriter(qq422016)
-//line base.qtpl:44
+//line base.qtpl:54
p.StreamScript(qw422016)
-//line base.qtpl:44
+//line base.qtpl:54
qt422016.ReleaseWriter(qw422016)
-//line base.qtpl:44
+//line base.qtpl:54
}
-//line base.qtpl:44
+//line base.qtpl:54
func (p *BasePage) Script() string {
-//line base.qtpl:44
+//line base.qtpl:54
qb422016 := qt422016.AcquireByteBuffer()
-//line base.qtpl:44
+//line base.qtpl:54
p.WriteScript(qb422016)
-//line base.qtpl:44
+//line base.qtpl:54
qs422016 := string(qb422016.B)
-//line base.qtpl:44
+//line base.qtpl:54
qt422016.ReleaseByteBuffer(qb422016)
-//line base.qtpl:44
+//line base.qtpl:54
return qs422016
-//line base.qtpl:44
+//line base.qtpl:54
}