aboutsummaryrefslogtreecommitdiff
path: root/templates/gititem.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-05-30 17:01:38 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-05-30 17:01:38 +0200
commite52226c05fb54dfe41c9bc5ebc6ce1b7ded7e1fe (patch)
tree9b067f810dfb9cbe6e7aabf2f7c88c77fc306531 /templates/gititem.qtpl
parent242ba7f412d4e54f21385afff3f2b884f57f6ced (diff)
downloadcerrado-e52226c05fb54dfe41c9bc5ebc6ce1b7ded7e1fe.tar.gz
cerrado-e52226c05fb54dfe41c9bc5ebc6ce1b7ded7e1fe.tar.bz2
cerrado-e52226c05fb54dfe41c9bc5ebc6ce1b7ded7e1fe.zip
feat: Add initial git item page
Diffstat (limited to 'templates/gititem.qtpl')
-rw-r--r--templates/gititem.qtpl48
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/gititem.qtpl b/templates/gititem.qtpl
new file mode 100644
index 0000000..156325f
--- /dev/null
+++ b/templates/gititem.qtpl
@@ -0,0 +1,48 @@
+{% code
+type GitItemPage struct {
+}
+%}
+
+
+{% func insertIfEqual(s, d Selection) %}{% if s == d %} selected{% endif %}{% endfunc %}
+
+
+{% func Navbar (s Selection) %}
+ <nav class="container navbar navbar-expand">
+ <div class="navbar-nav">
+ <a class="nav-link{%= insertIfEqual(s, Git) %}" href="/">git</a>
+ <a class="nav-link{%= insertIfEqual(s, List) %}" href="/list">list</a>
+ <a class="nav-link{%= insertIfEqual(s, About) %}" href="/about">about</a>
+ <a class="nav-link{%= insertIfEqual(s, Config) %}" href="/config">config</a>
+ </div>
+ </nav>
+{% endfunc %}
+
+{% func (p *GitItemPage) Title() %}Git | List{% endfunc %}
+
+{% func (p *GitItemPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
+
+{% func (p *GitItemPage) Content() %}
+<div class="row">
+ <h3>AoC2022.git</h3>
+</div>
+<div class="row">
+ <ul class="nav">
+ <li class="nav-item">
+ <a class="nav-link" aria-current="page" href="#">about</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" aria-current="page" href="#">summary</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" aria-current="page" href="#">refs</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" aria-current="page" href="#">tree</a>
+ </li>
+ </ul>
+</div>
+{% endfunc %}
+
+{% func (p *GitItemPage) Script() %}
+{% endfunc %}