1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-10 13:38:20 +00:00
mycorrhiza/web/views/cat-page.html

23 lines
756 B
HTML
Raw Permalink Normal View History

2022-04-02 00:59:47 +03:00
{{define "category x"}}Category {{. | beautifulName}}{{end}}
{{define "title"}}{{template "category x" .CatName}}{{end}}
{{define "body"}}
{{$catName := .CatName}}
<main class="main-width category">
{{if .GivenPermissionToModify}}
<div class="btn btn_navititle">
<a class="btn__link_navititle" href="/edit-category/{{$catName}}">{{block "edit" .}}Edit{{end}}</a>
</div>
{{end}}
<h1>{{block "cat" .}}Category{{end}} <i>{{beautifulName $catName}}</i></h1>
{{if len .Hyphae | not}}
<p>{{block "empty cat" .}}This category is empty{{end}}</p>
{{end}}
2022-05-07 01:50:49 +05:00
<ol>
{{range .Hyphae}}
2022-05-07 01:50:49 +05:00
<li>
<a class="wikilink" href="/hypha/{{.}}">{{beautifulName .}}</a>
</li>
{{end}}
</ol>
</main>
{{end}}