func parentelements(lang string, cmd *commandsxml.Command) template.HTML { var ret []string x := cmd.Parents(lang) if len(x) == 0 { return template.HTML("(" + translate(lang, "none") + ")") } for _, v := range x { ret = append(ret, fmt.Sprintf(`<a href=%q>%s</a>`, v.Htmllink(), v.NameEn)) } return template.HTML(strings.Join(ret, ", ")) }
// Version | Startpage | ... func footer(version, lang string, command *commandsxml.Command) template.HTML { if lang == "en" { return template.HTML(fmt.Sprintf(`Version: %s | <a href="../index.html">Start page</a> | <a href="../commands-en/layout.html">Command reference</a> | Other language: <a href="../commands-de/%s">German</a>`, version, command.Htmllink())) } else { return template.HTML(fmt.Sprintf(`Version: %s | <a href="../index-de.html">Startseite</a> | <a href="../commands-de/layout.html">Befehlsreferenz</a> | Andere Sprache: <a href="../commands-en/%s">Englisch</a>`, version, command.Htmllink())) } }