diff --git a/options/locale/locale_ru-RU.ini b/options/locale/locale_ru-RU.ini index 09643754b4..eec461d65a 100644 --- a/options/locale/locale_ru-RU.ini +++ b/options/locale/locale_ru-RU.ini @@ -804,8 +804,8 @@ download_bundle=Скачать BUNDLE generate_repo=Создать проект generate_from=Создать из repo_desc=Описание -resources=Необходимые ресурсы -competences=Необходимые компетенции +resources=Ресурсы +competences=Компетенции repo_desc_helper=Добавьте краткое описание (необязательно) repo_lang=Язык repo_gitignore_helper=Выберите шаблон .gitignore. diff --git a/routers/web/repo/competence.go b/routers/web/repo/competence.go new file mode 100644 index 0000000000..14fa178ccd --- /dev/null +++ b/routers/web/repo/competence.go @@ -0,0 +1,15 @@ +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.HTML(http.StatusOK, tplCompetences) +} diff --git a/routers/web/repo/resource.go b/routers/web/repo/resource.go new file mode 100644 index 0000000000..95e75c0818 --- /dev/null +++ b/routers/web/repo/resource.go @@ -0,0 +1,15 @@ +package repo + +import ( + "code.gitea.io/gitea/modules/base" + "code.gitea.io/gitea/modules/context" + "net/http" +) + +const ( + tplResources base.TplName = "repo/resources/list" +) + +func Resources(ctx *context.Context) { + ctx.HTML(http.StatusOK, tplResources) +} diff --git a/routers/web/web.go b/routers/web/web.go index 171d5c0e81..1e0937671e 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -890,6 +890,8 @@ func RegisterRoutes(m *web.Route) { m.Group("", func() { m.Get("/{type:issues|pulls}", repo.Issues) m.Get("/issues_tree", repo.IssuesTree) + m.Get("/resources", repo.Resources) + m.Get("/competences", repo.Competences) m.Get("/{type:issues|pulls}/{index}", repo.ViewIssue) m.Group("/{type:issues|pulls}/{index}/content-history", func() { m.Get("/overview", repo.GetContentHistoryOverview) diff --git a/templates/repo/competences/list.tmpl b/templates/repo/competences/list.tmpl new file mode 100644 index 0000000000..15bd99afda --- /dev/null +++ b/templates/repo/competences/list.tmpl @@ -0,0 +1 @@ +