From c372deaae85b994ccb67e07deaad6380d77d076b Mon Sep 17 00:00:00 2001 From: OpenIhu Date: Fri, 16 Jul 2021 17:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4contributor=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/public/css/index.css | 7 +++++ templates/repo/home.tmpl | 59 +++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 custom/public/css/index.css diff --git a/custom/public/css/index.css b/custom/public/css/index.css new file mode 100644 index 000000000..aeb7bf6d4 --- /dev/null +++ b/custom/public/css/index.css @@ -0,0 +1,7 @@ +.repository.file.list #repo-desc { + font-size: 1.0em; + margin-bottom: 1.0rem; +} +.repository.file.list #repo-desc p{ + margin-bottom: 1.0rem; +} \ No newline at end of file diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 3dcf58650..b2807fa1f 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -4,7 +4,30 @@
{{template "base/alert" .}}
- + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} + + {{end}} +
+ {{.i18n.Tr "repo.topic.count_prompt"}} + {{.i18n.Tr "repo.topic.format_prompt"}} +
+ {{if .RepoSearchEnabled}}

- + {{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"}} -
+

- + {{range .LanguageStats}} {{.Language}} {{end}}

- + {{if .LICENSE}} {{.LICENSE}} {{end}}

-
+
+ +

贡献者