]> source.dussan.org Git - gitea.git/commitdiff
Mirror fix
authorUnknown <joe2010xtmf@163.com>
Wed, 19 Mar 2014 14:01:45 +0000 (10:01 -0400)
committerUnknown <joe2010xtmf@163.com>
Wed, 19 Mar 2014 14:01:45 +0000 (10:01 -0400)
.gopmfile
README.md
models/repo.go
templates/repo/nav.tmpl

index 4c05ae4aecdbd2e9d57555c0e0dd6e7c461d890d..9e2440f3ef34c4e1a0f5b0bf9063bf0ca1615938 100644 (file)
--- 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=
index c0cd9cceb206209a779aadeddc57cb0e80a2e9eb..ce5fd5f6db4f431ebac9d12498f2db3635481568 100644 (file)
--- 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
 
index 38ab3d4a9b63c2f9f4d029b5cc76a20382a34463..fce7d7f53045c208f512443cf259e558ca837b4e 100644 (file)
@@ -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
index b67f82d5e34a6d91d7bc505524e4e5a4e7369e27..d261bbd6e9e5785acb18f2b35c4a8428202d98df 100644 (file)
@@ -3,7 +3,7 @@
         <div class="row">
             <div class="col-md-6">
                 <h3 class="name"><i class="fa fa-book fa-lg"></i><a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / {{.Repository.Name}}</h3>
-                <p class="desc">a sentence to describe the repository.<a href="#">official-site</a></p>
+                <p class="desc">{{.Repository.Description}}{{if .Repository.Website}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}</p>
             </div>
             {{if not .IsBareRepo}}
             <div class="col-md-6 actions text-right">