Attachment of {%s util.BeautifulName(h.Name) %}
{% if h.BinaryPath == "" %}This hypha has no attachment, you can upload it here.
{% else %}You can manage the hypha's attachment on this page.
{% endif %}{% import "net/http" %} {% import "strings" %} {% import "path" %} {% import "os" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% 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 %}Please note that viewing binary parts of hyphae is not supported in history for now.
{%s= NaviTitleHTML(h) %} {%s= contents %}