try fix navbar
This commit is contained in:
parent
529b1dd0f4
commit
c6cc0b17c0
@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user