mirror of https://github.com/go-gitea/gitea
commit
bbadbbdf68
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,22 @@ |
||||
// Copyright 2014 The Gogs Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package repo |
||||
|
||||
import ( |
||||
"github.com/gogits/gogs/models" |
||||
"github.com/gogits/gogs/modules/middleware" |
||||
) |
||||
|
||||
func Releases(ctx *middleware.Context) { |
||||
ctx.Data["Title"] = "Releases" |
||||
ctx.Data["IsRepoToolbarReleases"] = true |
||||
tags, err := models.GetTags(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name) |
||||
if err != nil { |
||||
ctx.Handle(404, "repo.Releases(GetTags)", err) |
||||
return |
||||
} |
||||
ctx.Data["Releases"] = tags |
||||
ctx.HTML(200, "release/list") |
||||
} |
@ -0,0 +1,10 @@ |
||||
{{template "base/head" .}} |
||||
{{template "base/navbar" .}} |
||||
{{template "repo/nav" .}} |
||||
{{template "repo/toolbar" .}} |
||||
<div id="body" class="container"> |
||||
{{range .Releases}} |
||||
{{.}} |
||||
{{end}} |
||||
</div> |
||||
{{template "base/footer" .}} |
Loading…
Reference in new issue