{% import "net/http" %} {% import "strings" %} {% import "github.com/bouncepaw/mycorrhiza/hyphae/backlinks" %} {% import "github.com/bouncepaw/mycorrhiza/l18n" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/hyphae" %} {% func hyphaInfoEntry(h hyphae.Hypha, u *user.User, action, displayText string) %} {% if u.CanProceed(action) %}
  • {%s displayText %}
  • {% endif %} {% endfunc %} {% func hyphaInfo(rq *http.Request, h hyphae.Hypha) %} {% code u := user.FromRequest(rq) lc := l18n.FromRequest(rq) backs := backlinks.BacklinksCount(h) %} {% endfunc %} {% func siblingHyphaeHTML(siblings string, lc *l18n.Localizer) %} {% endfunc %} {% func SubhyphaeHTML(subhyphae string, lc *l18n.Localizer) %} {% if strings.TrimSpace(subhyphae) != "" %}

    {%s lc.Get("ui.subhyphae") %}

    {% endif %} {% endfunc %}