Unknown 11 éve
szülő
commit
dd8e7868ce
4 módosított fájl, 3 hozzáadás és 3 törlés
  1. 0 1
      .gopmfile
  2. 1 1
      README.md
  3. 1 0
      models/repo.go
  4. 1 1
      templates/repo/nav.tmpl

+ 0 - 1
.gopmfile

@@ -4,7 +4,6 @@ path=github.com/gogits/gogs
 [deps]
 [deps]
 github.com/codegangsta/cli=
 github.com/codegangsta/cli=
 github.com/codegangsta/martini=
 github.com/codegangsta/martini=
-github.com/martini-contrib/render=
 github.com/martini-contrib/sessions=
 github.com/martini-contrib/sessions=
 github.com/Unknwon/com=
 github.com/Unknwon/com=
 github.com/Unknwon/cae=
 github.com/Unknwon/cae=

+ 1 - 1
README.md

@@ -40,7 +40,7 @@ There are two ways to install Gogs:
 ## Acknowledgments
 ## Acknowledgments
 
 
 - Mail service is based on [WeTalk](https://github.com/beego/wetalk).
 - 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
 ## Contributors
 
 

+ 1 - 0
models/repo.go

@@ -34,6 +34,7 @@ type Repository struct {
 	LowerName   string `xorm:"unique(s) index not null"`
 	LowerName   string `xorm:"unique(s) index not null"`
 	Name        string `xorm:"index not null"`
 	Name        string `xorm:"index not null"`
 	Description string
 	Description string
+	Website     string
 	Private     bool
 	Private     bool
 	NumWatchs   int
 	NumWatchs   int
 	NumStars    int
 	NumStars    int

+ 1 - 1
templates/repo/nav.tmpl

@@ -3,7 +3,7 @@
         <div class="row">
         <div class="row">
             <div class="col-md-6">
             <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>
                 <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>
             </div>
             {{if not .IsBareRepo}}
             {{if not .IsBareRepo}}
             <div class="col-md-6 actions text-right">
             <div class="col-md-6 actions text-right">