{% import "github.com/bouncepaw/mycorrhiza/backlinks" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% import "github.com/bouncepaw/mycorrhiza/hyphae" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% import "github.com/bouncepaw/mycorrhiza/viewutil" %} {% func hyphaInfoEntry(h hyphae.Hypha, u *user.User, action string, hasToExist bool, displayText string) %} {% code flag := true %} {% switch h.(type) %} {% case *hyphae.EmptyHypha %} {% code flag = !hasToExist %} {% endswitch %} {% if u.CanProceed(action) && flag %}
  • {%s displayText %}
  • {% endif %} {% endfunc %} {% func hyphaInfo(meta viewutil.Meta, h hyphae.Hypha) %} {% code u := meta.U lc := meta.Lc backs := backlinks.BacklinksCount(h) %} {% endfunc %} {% func commonScripts() %} {% for _, scriptPath := range cfg.CommonScripts %} {% endfor %} {% endfunc %} {% func beautifulLink(hyphaName string) %}{%s util.BeautifulName(hyphaName) %}{% endfunc %}