mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
Bug fix
This commit is contained in:
parent
757f360949
commit
601c10309d
4 changed files with 5 additions and 2 deletions
|
@ -172,8 +172,9 @@ func init() {
|
||||||
AppUrl = Cfg.MustValue("server", "ROOT_URL")
|
AppUrl = Cfg.MustValue("server", "ROOT_URL")
|
||||||
Domain = Cfg.MustValue("server", "DOMAIN")
|
Domain = Cfg.MustValue("server", "DOMAIN")
|
||||||
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
|
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
|
||||||
|
}
|
||||||
|
|
||||||
// Extensions.
|
func NewServices() {
|
||||||
newService()
|
newService()
|
||||||
newLogService()
|
newLogService()
|
||||||
newMailService()
|
newMailService()
|
||||||
|
|
|
@ -188,6 +188,7 @@ func Commits(ctx *middleware.Context, params martini.Params) {
|
||||||
}
|
}
|
||||||
ctx.Data["Username"] = params["username"]
|
ctx.Data["Username"] = params["username"]
|
||||||
ctx.Data["Reponame"] = params["reponame"]
|
ctx.Data["Reponame"] = params["reponame"]
|
||||||
|
ctx.Data["CommitCount"] = commits.Len()
|
||||||
ctx.Data["Commits"] = commits
|
ctx.Data["Commits"] = commits
|
||||||
ctx.HTML(200, "repo/commits", ctx.Data)
|
ctx.HTML(200, "repo/commits", ctx.Data)
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="search pull-right form">
|
<div class="search pull-right form">
|
||||||
<input class="form-control search" type="search" placeholder="search commit"/>
|
<input class="form-control search" type="search" placeholder="search commit"/>
|
||||||
</div>
|
</div>
|
||||||
<h4>Commits</h4>
|
<h4>{{.CommitCount}} Commits</h4>
|
||||||
</div>
|
</div>
|
||||||
<table class="panel-footer table commit-list table table-striped">
|
<table class="panel-footer table commit-list table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
1
web.go
1
web.go
|
@ -58,6 +58,7 @@ func newMartini() *martini.ClassicMartini {
|
||||||
}
|
}
|
||||||
|
|
||||||
func runWeb(*cli.Context) {
|
func runWeb(*cli.Context) {
|
||||||
|
base.NewServices()
|
||||||
checkRunMode()
|
checkRunMode()
|
||||||
log.Info("%s %s", base.AppName, base.AppVer)
|
log.Info("%s %s", base.AppName, base.AppVer)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue