1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

Revert "fork render"

This reverts commit 56af7e99a8.
This commit is contained in:
slene
2014-03-19 22:11:28 +08:00
parent 3634d1ee32
commit 483cc31369
13 changed files with 83 additions and 367 deletions

View File

@@ -6,9 +6,7 @@ package base
import (
"container/list"
"fmt"
"html/template"
"time"
)
func Str2html(raw string) template.HTML {
@@ -42,9 +40,6 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"AppDomain": func() string {
return Domain
},
"LoadTimes": func(startTime time.Time) string {
return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
},
"AvatarLink": AvatarLink,
"str2html": Str2html,
"TimeSince": TimeSince,