wire config.Url to news page for add to transmet link

This commit is contained in:
Dan Ballard 2015-11-22 10:01:03 -08:00
parent 2b77215d05
commit cbc4dc40bf
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ func newsFormHandler(w http.ResponseWriter, r *http.Request, user *user.User, se
session.AddFlash("Error loading news", flash_err) session.AddFlash("Error loading news", flash_err)
} }
ShowTemplate("news", w, r, map[string]interface{}{"user": user, "flashes": flashes, "news": news, "count": count, "categories": categories.CategoriesFlat}) ShowTemplate("news", w, r, map[string]interface{}{"user": user, "flashes": flashes, "news": news, "count": count, "categories": categories.CategoriesFlat, "url": config.Url})
} }
func ServeFileHandler(res http.ResponseWriter, req *http.Request) { func ServeFileHandler(res http.ResponseWriter, req *http.Request) {