From dd8e7868ce78216faf563d4f232a87cb416eeff4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 19 Mar 2014 10:01:45 -0400 Subject: [PATCH] Mirror fix --- .gopmfile | 1 - README.md | 2 +- models/repo.go | 1 + templates/repo/nav.tmpl | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gopmfile b/.gopmfile index 4c05ae4ae..9e2440f3e 100644 --- a/.gopmfile +++ b/.gopmfile @@ -4,7 +4,6 @@ path=github.com/gogits/gogs [deps] github.com/codegangsta/cli= github.com/codegangsta/martini= -github.com/martini-contrib/render= github.com/martini-contrib/sessions= github.com/Unknwon/com= github.com/Unknwon/cae= diff --git a/README.md b/README.md index c0cd9cceb..ce5fd5f6d 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ There are two ways to install Gogs: ## Acknowledgments - Mail service is based on [WeTalk](https://github.com/beego/wetalk). -- Logo inspired by [martini](https://github.com/martini-contrib). +- Logo is inspired by [martini](https://github.com/martini-contrib). ## Contributors diff --git a/models/repo.go b/models/repo.go index 38ab3d4a9..fce7d7f53 100644 --- a/models/repo.go +++ b/models/repo.go @@ -34,6 +34,7 @@ type Repository struct { LowerName string `xorm:"unique(s) index not null"` Name string `xorm:"index not null"` Description string + Website string Private bool NumWatchs int NumStars int diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl index b67f82d5e..d261bbd6e 100644 --- a/templates/repo/nav.tmpl +++ b/templates/repo/nav.tmpl @@ -3,7 +3,7 @@

{{.Owner.Name}} / {{.Repository.Name}}

-

a sentence to describe the repository.official-site

+

{{.Repository.Description}}{{if .Repository.Website}}{{.Repository.Website}}{{end}}

{{if not .IsBareRepo}}