From f545faa06d553750b9f4018336e810530389f88c Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Dec 2018 22:58:02 -0500 Subject: templates: make state changing routes to POST method (#5541) - pkg/context: add ParamsUser to unify the injection process --- templates/user/profile.tmpl | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'templates/user/profile.tmpl') diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index d60fce56..285aa12c 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -5,12 +5,12 @@
{{if eq .LoggedUserName .Owner.Name}} - - + + {{else}} - - + + {{end}}
@@ -61,13 +61,23 @@ {{end}} {{if and .IsLogged (ne .LoggedUserName .Owner.Name)}} - + {{end}}
-- cgit v1.2.3