mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 16:48:03 +02:00
Add top author stats to activity page (#9615)
This commit is contained in:
1 parent
7d7ab1eeae
commit
81cfe243f9
13 files changed
+524
-906
No files matched your search
@@ -182,6 +182,13 @@ func NewFuncMap() []template.FuncMap {
|
||||
}
|
||||
return path
|
||||
},
|
||||
"Json": func(in interface{}) string {
|
||||
out, err := json.Marshal(in)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return string(out)
|
||||
},
|
||||
"JsonPrettyPrint": func(in string) string {
|
||||
var out bytes.Buffer
|
||||
err := json.Indent(&out, []byte(in), "", " ")
|
||||
|
||||
Reference in new issue
Block a user