mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 19:11:58 +01:00
Mirror change
This commit is contained in:
parent
5bc2a1a6f9
commit
ee93186f72
3 changed files with 14 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,4 +6,3 @@ gogs
|
||||||
*.log
|
*.log
|
||||||
custom/
|
custom/
|
||||||
.vendor/
|
.vendor/
|
||||||
repo/
|
|
||||||
|
|
|
@ -88,15 +88,9 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||||
var readmeFile *models.RepoFile
|
var readmeFile *models.RepoFile
|
||||||
|
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
if !f.IsFile() {
|
if !f.IsFile() || len(f.Name) < 6 {
|
||||||
continue
|
continue
|
||||||
}
|
} else if strings.ToLower(f.Name[:6]) == "readme" {
|
||||||
|
|
||||||
if len(f.Name) < 6 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if strings.ToLower(f.Name[:6]) == "readme" {
|
|
||||||
readmeFile = f
|
readmeFile = f
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -136,8 +130,9 @@ func Setting(ctx *middleware.Context, params martini.Params) {
|
||||||
ctx.Render.HTML(200, "repo/setting", ctx.Data)
|
ctx.Render.HTML(200, "repo/setting", ctx.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Commits(ctx *middleware.Context) string {
|
func Commits(ctx *middleware.Context) {
|
||||||
return "This is commits page"
|
ctx.Data["IsRepoToolbarCommits"] = true
|
||||||
|
ctx.Render.HTML(200, "repo/commits", ctx.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Issues(ctx *middleware.Context) string {
|
func Issues(ctx *middleware.Context) string {
|
||||||
|
|
9
templates/repo/commits.tmpl
Normal file
9
templates/repo/commits.tmpl
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{{template "base/head" .}}
|
||||||
|
{{template "base/navbar" .}}
|
||||||
|
{{template "repo/nav" .}}
|
||||||
|
{{template "repo/toolbar" .}}
|
||||||
|
<div id="gogs-body" class="container">
|
||||||
|
<div id="gogs-commits">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{template "base/footer" .}}
|
Loading…
Reference in a new issue