Exemple #1
0
// 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()))
	}
}