From 2350d54bf6da9d6b9fe70a70a85f88cf0ae82066 Mon Sep 17 00:00:00 2001 From: OpenIhu Date: Thu, 1 Jul 2021 14:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=A8=A1=E6=9D=BF=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8F=E5=86=85=E5=AE=B9=EF=BC=9Acontributor?= =?UTF-8?q?=E5=8F=8A=E8=BF=91=E6=9C=9F=E5=8A=A8=E6=80=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/repo/home.tmpl | 142 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 104 insertions(+), 38 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 9965bdeee..de0bd7cbd 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -4,10 +4,7 @@
{{template "base/alert" .}}
-
- {{if .Repository.DescriptionHTML}}{{.Repository.DescriptionHTML}}{{else if .IsRepositoryAdmin}}{{.i18n.Tr "repo.no_desc"}}{{end}} - {{.Repository.Website}} -
+ {{if .RepoSearchEnabled}} {{end}}
-
- {{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.i18n.Tr "repo.topic.manage_topics"}}{{end}} -
- {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} - - {{end}} -
- {{.i18n.Tr "repo.topic.count_prompt"}} - {{.i18n.Tr "repo.topic.format_prompt"}} -
+ {{if .Repository.IsArchived}}
{{.i18n.Tr "repo.archive.title"}} @@ -141,13 +112,108 @@ {{end}}
- {{if .IsViewFile}} - {{template "repo/view_file" .}} - {{else if .IsBlame}} - {{template "repo/blame" .}} - {{else}} - {{template "repo/view_list" .}} - {{end}} +
+
+
+ {{if .IsViewFile}} + {{template "repo/view_file" .}} + {{else if .IsBlame}} + {{template "repo/blame" .}} + {{else}} + {{template "repo/view_list" .}} + {{end}} +
+
+
+

简介

+ {{if .Repository.DescriptionHTML}}{{.Repository.DescriptionHTML}}{{else if .IsRepositoryAdmin}}{{.i18n.Tr "repo.no_desc"}}{{end}} + {{.Repository.Website}} +
+ +
+ + {{range .Topics}}{{.Name}}{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.i18n.Tr "repo.topic.manage_topics"}}{{end}} +
+ {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} + + {{end}} +
+ {{.i18n.Tr "repo.topic.count_prompt"}} + {{.i18n.Tr "repo.topic.format_prompt"}} +
+ +
+ + TensorFlow 1.2, Python 3.7 +
+ +
+ + MIT +
+ +
+

+ 贡献者 + +

+
+ + + + +
+
+ +
+

+ 近期动态 +

+ +
+ +
+
+
+ {{template "base/footer" .}}