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/repo/header.tmpl | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'templates/repo/header.tmpl') diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index d15b5dde..cacda1ed 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -20,22 +20,28 @@ {{if not $.IsGuest}}
- - +
+ {{$.CSRFTokenHTML}} +
+ + + {{.NumWatches}} + +
+
+
+ {{$.CSRFTokenHTML}} +
+ + + {{.NumStars}} + +
+
{{if .CanBeForked}}