This hypha has no text. Why not create it?
{% if u := user.FromRequest(rq); (!user.AuthUsed || u.Group != "anon") && !h.Exists %}{% endif %} {% else %} {%s= contents %} {% endif %}
{% import "net/http" %} {% import "strings" %} {% import "path" %} {% import "os" %} {% import "github.com/bouncepaw/mycorrhiza/hyphae" %} {% import "github.com/bouncepaw/mycorrhiza/mimetype" %} {% import "github.com/bouncepaw/mycorrhiza/tree" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% func AttachmentMenuHTML(rq *http.Request, h *hyphae.Hypha, u *user.User) %} {%= NavHTML(rq, h.Name, "attachment") %}
This hypha has no attachment, you can upload it here.
{% else %}You can manage the hypha's attachment on this page.
{% endif %}This hypha has no text. Why not create it?
{% if u := user.FromRequest(rq); (!user.AuthUsed || u.Group != "anon") && !h.Exists %}Please note that viewing binary parts of hyphae is not supported in history for now.
{%s= NaviTitleHTML(h) %} {%s= contents %}