Archived
1
0

try fix navbar

This commit is contained in:
Jeff Becker 2017-10-10 13:27:27 -04:00
parent 529b1dd0f4
commit c6cc0b17c0
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -624,14 +624,7 @@ func (self *thread) Navbar() string {
param := make(map[string]interface{}) param := make(map[string]interface{})
param["name"] = fmt.Sprintf("Thread %s", self.Posts[0].ShortHash()) param["name"] = fmt.Sprintf("Thread %s", self.Posts[0].ShortHash())
param["frontend"] = self.Board() param["frontend"] = self.Board()
var links []LinkModel param["links"] = self.links
for idx := range self.links {
links = append(links, linkModel{
text: self.links[idx].Text(),
link: self.links[idx].LinkURL() + "?lang=" + self._i18n.Name,
})
}
param["links"] = links
param["prefix"] = self.prefix param["prefix"] = self.prefix
return template.renderTemplate("navbar.mustache", param, self._i18n) return template.renderTemplate("navbar.mustache", param, self._i18n)
} }