Add latest commit in repo viewer

This commit is contained in:
Unknown committed 2014-03-17 00:57:18 -04:00
1 parent 664bbe4f54
commit 0f68930892
6 files changed
+57 -3

No files matched your search

+5
View File
@@ -22,6 +22,11 @@ func EncodeMd5(str string) string {
return hex.EncodeToString(m.Sum(nil))
}
// AvatarLink returns avatar link by given e-mail.
func AvatarLink(email string) string {
return "http://1.gravatar.com/avatar/" + EncodeMd5(email)
}
// Seconds-based time units
const (
Minute = 60