summaryrefslogtreecommitdiffstats
path: root/modules/base/tool.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-15 19:01:50 +0800
committerslene <vslene@gmail.com>2014-03-15 19:01:50 +0800
commitfa5ad1e46560bd006bccf57e5cac39589d18e344 (patch)
tree6157a0fb7f2333207d8ba907713be873b3eb0e52 /modules/base/tool.go
parent06deed820d9f48ecf972c8716b17ad58b91ab9b9 (diff)
downloadgitea-fa5ad1e46560bd006bccf57e5cac39589d18e344.tar.gz
gitea-fa5ad1e46560bd006bccf57e5cac39589d18e344.zip
move templateFuncs to one file, add middleware context.
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r--modules/base/tool.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index 4b84ac0bdd..4802c413ed 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -8,7 +8,6 @@ import (
"crypto/md5"
"encoding/hex"
"fmt"
- "html/template"
"strings"
"time"
)
@@ -30,10 +29,6 @@ const (
Year = 12 * Month
)
-func Str2html(raw string) template.HTML {
- return template.HTML(raw)
-}
-
// TimeSince calculates the time interval and generate user-friendly string.
func TimeSince(then time.Time) string {
now := time.Now()