{% import "net/http" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% func HistoryHTML(rq *http.Request, hyphaName, tbody string) %}
{%= navHTML(rq, hyphaName, "history") %} {%s= tbody %}
Time Hash Message
{% endfunc %} {% func RevisionHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) %}
{%= navHTML(rq, hyphaName, "revision", revHash) %}

Please note that viewing binary parts of hyphae is not supported in history for now.

{%s= naviTitle %} {%s= contents %}

{% endfunc %} If `contents` == "", a helpful message is shown instead. {% func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, tree string) %}
{%= navHTML(rq, hyphaName, "page") %}
{%s= naviTitle %} {% if contents == "" %}

This hypha has no text. Why not create it?

{% else %} {%s= contents %} {% endif %}

{% if u := user.FromRequest(rq).OrAnon(); !user.AuthUsed || u.Group > user.UserAnon %}


{% endif %}
{% endfunc %}