Платформа ЦРНП "Мирокод" для разработки проектов
https://git.mirocod.ru
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
531 B
27 lines
531 B
package repo |
|
|
|
import ( |
|
"code.gitea.io/gitea/modules/base" |
|
"code.gitea.io/gitea/modules/context" |
|
"code.gitea.io/gitea/routers/web/user" |
|
"net/http" |
|
) |
|
|
|
const ( |
|
tplResources base.TplName = "repo/resources/list" |
|
) |
|
|
|
func Resources(ctx *context.Context) { |
|
ctx.Data["PageIsResources"] = true |
|
repo := ctx.Data["Repository"] |
|
|
|
var err error |
|
ctx.Data["RenderedResources"], err = user.GetRenderedTextField(ctx, repo, "Resources") |
|
|
|
if err != nil { |
|
ctx.ServerError("Render", err) |
|
return |
|
} |
|
|
|
ctx.HTML(http.StatusOK, tplResources) |
|
}
|
|
|