{% import "fmt" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% import "github.com/bouncepaw/mycorrhiza/l18n" %} {% func Backlinks(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) %}

{%s= lc.Get( "ui.backlinks_heading", &l18n.Replacements{ "hypha_link": fmt.Sprintf( `%s`, hyphaName, util.BeautifulName(hyphaName), ), }, )%}

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

{% endfunc %} {% func Help(content, lang string, lc *l18n.Localizer) %}
{%s= content %}
{%s= helpTopics(lang, lc) %}
{% endfunc %} {% func HelpEmptyError(lc *l18n.Localizer) %}

{%s lc.Get("help.empty_error_title") %}

{%s lc.Get("help.empty_error_line_1") %}

{%s lc.Get("help.empty_error_line_2a") %} {%s lc.Get("help.empty_error_link") %} {%s lc.Get("help.empty_error_line_2b") %}

{% endfunc %} {% func commonScripts() %} {% for _, scriptPath := range cfg.CommonScripts %} {% endfor %} {% endfunc %}