1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 11:46:16 +00:00
mycorrhiza/templates/common.qtpl

20 lines
580 B
Plaintext
Raw Normal View History

{% import "net/http" %}
{% import "github.com/bouncepaw/mycorrhiza/user" %}
2021-02-20 16:14:33 +00:00
{% import "github.com/bouncepaw/mycorrhiza/views" %}
2020-10-02 15:31:59 +00:00
{% func navHTML(rq *http.Request, hyphaName, navType string, revisionHash ...string) %}
2021-02-20 16:14:33 +00:00
{%s= views.NavHTML(rq, hyphaName, navType, revisionHash...) %}
2020-10-02 15:31:59 +00:00
{% endfunc %}
{% func userMenuHTML(u *user.User) %}
2021-02-20 16:14:33 +00:00
{%s= views.UserMenuHTML(u) %}
{% endfunc %}
2021-01-26 05:41:57 +00:00
{% func relativeHyphae(relatives string) %}
2021-02-20 16:14:33 +00:00
{%s= views.RelativeHyphaeHTML(relatives) %}
2021-01-26 05:41:57 +00:00
{% endfunc %}
2021-02-19 09:23:57 +00:00
2021-02-19 18:12:36 +00:00
{% func subhyphaeMatrix(subhyphae string) %}
2021-02-20 16:14:33 +00:00
{%s= views.SubhyphaeHTML(subhyphae) %}
2021-02-19 18:12:36 +00:00
{% endfunc %}