Add a title to the user profile page
This commit is contained in:
parent
20c05637d9
commit
4f01e1fdcf
|
@ -215,11 +215,15 @@ func UserProfile(c *RequestContext) ResponseData {
|
||||||
|
|
||||||
c.Perf.EndBlock()
|
c.Perf.EndBlock()
|
||||||
|
|
||||||
|
templateUser := templates.UserToTemplate(profileUser, c.Theme)
|
||||||
|
|
||||||
baseData := getBaseData(c)
|
baseData := getBaseData(c)
|
||||||
|
baseData.Title = templateUser.Name
|
||||||
|
|
||||||
var res ResponseData
|
var res ResponseData
|
||||||
res.MustWriteTemplate("user_profile.html", UserProfileTemplateData{
|
res.MustWriteTemplate("user_profile.html", UserProfileTemplateData{
|
||||||
BaseData: baseData,
|
BaseData: baseData,
|
||||||
ProfileUser: templates.UserToTemplate(profileUser, c.Theme),
|
ProfileUser: templateUser,
|
||||||
ProfileUserLinks: profileUserLinks,
|
ProfileUserLinks: profileUserLinks,
|
||||||
ProfileUserProjects: templateProjects,
|
ProfileUserProjects: templateProjects,
|
||||||
TimelineItems: timelineItems,
|
TimelineItems: timelineItems,
|
||||||
|
|
Loading…
Reference in New Issue