From c6cc0b17c0622de3ff8640e1b3d728197b38edb2 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 10 Oct 2017 13:27:27 -0400 Subject: [PATCH] try fix navbar --- contrib/backends/srndv2/src/srnd/model_mem.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/model_mem.go b/contrib/backends/srndv2/src/srnd/model_mem.go index 7e4ae6f..38013ed 100644 --- a/contrib/backends/srndv2/src/srnd/model_mem.go +++ b/contrib/backends/srndv2/src/srnd/model_mem.go @@ -624,14 +624,7 @@ func (self *thread) Navbar() string { param := make(map[string]interface{}) param["name"] = fmt.Sprintf("Thread %s", self.Posts[0].ShortHash()) param["frontend"] = self.Board() - var links []LinkModel - 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["links"] = self.links param["prefix"] = self.prefix return template.renderTemplate("navbar.mustache", param, self._i18n) }