{% import "path/filepath" %}
{% import "strings" %}
{% import "github.com/bouncepaw/mycorrhiza/cfg" %}
{% import "github.com/bouncepaw/mycorrhiza/hyphae" %}
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
{% import "github.com/bouncepaw/mycorrhiza/user" %}
{% import "github.com/bouncepaw/mycorrhiza/util" %}
{% func beautifulLink(hyphaName string) %}{%s util.BeautifulName(hyphaName) %}{% endfunc %}
{% func mycoLink(lc *l18n.Localizer) %}{%s lc.Get("ui.notexist_write_myco") %}{% endfunc %}
{% func nonExistentHyphaNotice(h hyphae.Hypher, u *user.User, lc *l18n.Localizer) %}
{%s lc.Get("ui.notexist_norights") %} {%s= lc.Get("ui.notexist_write_tip1", &l18n.Replacements{"myco": mycoLink(lc)}) %} {%s lc.Get("ui.notexist_write_tip2") %} {%s lc.Get("ui.notexist_media_tip1") %}{%s lc.Get("ui.notexist_heading") %}
{% if cfg.UseAuth && u.Group == "anon" %}
{% else %}
📝 {%s lc.Get("ui.notexist_write") %}
🖼 {%s lc.Get("ui.notexist_media") %}