Платформа ЦРНП "Мирокод" для разработки проектов
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.
26 lines
515 B
26 lines
515 B
package repo |
|
|
|
import ( |
|
"code.gitea.io/gitea/modules/base" |
|
"code.gitea.io/gitea/modules/context" |
|
"net/http" |
|
) |
|
|
|
const ( |
|
tplCompetences base.TplName = "repo/competences/list" |
|
) |
|
|
|
func Competences(ctx *context.Context) { |
|
ctx.Data["PageIsCompetences"] = true |
|
repo := ctx.Data["Repository"] |
|
|
|
var err error |
|
ctx.Data["RenderedCompetences"], err = GetRenderedResourcesWithSearchLinks(ctx, repo, "Competences") |
|
|
|
if err != nil { |
|
ctx.ServerError("Render", err) |
|
return |
|
} |
|
|
|
ctx.HTML(http.StatusOK, tplCompetences) |
|
}
|
|
|