diff options
Diffstat (limited to 'src/web/templates/partials')
-rw-r--r-- | src/web/templates/partials/navbar.html | 9 | ||||
-rw-r--r-- | src/web/templates/partials/tags_menu.html | 18 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/web/templates/partials/navbar.html b/src/web/templates/partials/navbar.html new file mode 100644 index 0000000..223c3f3 --- /dev/null +++ b/src/web/templates/partials/navbar.html @@ -0,0 +1,9 @@ +{{ define "partials/navbar.html" }} +<nav id="navbar"> + <ul> + <a href="https://www.youtube.com/watch?v=DaWbq6KeJq4&list=RDxA_4ZFe1TME&index=16"> + <li>This UGLY Navbar Is Just A Placeholder</li> + </a> + </ul> +</nav> +{{ end }} diff --git a/src/web/templates/partials/tags_menu.html b/src/web/templates/partials/tags_menu.html new file mode 100644 index 0000000..8f1c3ee --- /dev/null +++ b/src/web/templates/partials/tags_menu.html @@ -0,0 +1,18 @@ +{{ define "partials/tags_menu.html" }} +<div class="tags-menu"> + <form class="tags-switcher" action="/posts/filter-by-tags" method="POST"> + <div class="options"> + {{ range .Tags }} + <label class="tag-label"> + <input type="checkbox" name="tags" value="{{ .TagID }}" id="{{ .TagID }}" class="{{ if .IsSelected }}active{{ end }}"> + <span class="tag {{ if .IsSelected }}active{{ end }}">{{ .TagName }}</span> + </label> + {{ end }} + </div> + <div class="menu"> + <input type="reset" value="Clear"/> + <input type="submit" value="Filter"/> + </div> + </form> +</div> +{{ end }} |