aboutsummaryrefslogtreecommitdiff
path: root/templates/gititem.qtpl
diff options
context:
space:
mode:
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 %}