diff options
author | Unknwon <u@gogs.io> | 2015-08-13 16:07:11 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-13 16:07:11 +0800 |
commit | 133b19d0c5587b7c6d5d9e8057f81bc45a246972 (patch) | |
tree | 1cd0e19599d5f9288fb1b2cbf5bf8f48fdf16fd8 /modules/base/tool.go | |
parent | d7d72b9e3cc0e536d213d6501244544de8020661 (diff) | |
download | gitea-133b19d0c5587b7c6d5d9e8057f81bc45a246972.tar.gz gitea-133b19d0c5587b7c6d5d9e8057f81bc45a246972.zip |
finish view comments on issue page
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index 2435ebe06f..16759f21f6 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -321,6 +321,10 @@ func timeSince(then time.Time, lang string) string { } } +func RawTimeSince(t time.Time, lang string) string { + return timeSince(t, lang) +} + // TimeSince calculates the time interval and generate user-friendly string. func TimeSince(t time.Time, lang string) template.HTML { return template.HTML(fmt.Sprintf(`<span class="time-since" title="%s">%s</span>`, t.Format(setting.TimeFormat), timeSince(t, lang))) |