From 280ace63bd905ddd5c48dc05decd02d661df72e4 Mon Sep 17 00:00:00 2001 From: wangjr Date: Tue, 18 Jan 2022 11:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E9=94=AE=E5=AD=97?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/org/course_list.tmpl | 6 ++++-- templates/org/home_courses.tmpl | 29 +++++++++++++++++++++-------- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/templates/org/course_list.tmpl b/templates/org/course_list.tmpl index 7cfbbbc67..dc07e0b21 100644 --- a/templates/org/course_list.tmpl +++ b/templates/org/course_list.tmpl @@ -123,8 +123,10 @@

- - {{$.i18n.Tr "org.repo_updated"}} :  {{.CreatedUnix.FormatShort}} + + + {{$.i18n.Tr "org.repo_updated"}} :  {{.CreatedUnix.FormatShort}} + diff --git a/templates/org/home_courses.tmpl b/templates/org/home_courses.tmpl index a5b1e0ca3..8f6230e4b 100644 --- a/templates/org/home_courses.tmpl +++ b/templates/org/home_courses.tmpl @@ -63,7 +63,17 @@ margin: 0.2em; margin-left: none; } - + .tag_key{ + max-width:100%; + margin: 2px 2px; + display:inline-flex; + } + .bpadding{ + padding:10px 40px + } + .omit{ + overflow: hidden; white-space: nowrap; text-overflow: ellipsis; + } {{template "base/head" .}}

@@ -148,16 +158,19 @@
- 全部关键字 + 全部关键字 {{range .CoursesKeywords}} - {{.}} + + + {{.}} + {{end}}
@@ -196,6 +209,7 @@
{{ range .tags}} {{if eq .TagName "精选项目"}} + {{range $i, $v := .RepoList}} {{if gt $i 0}}
@@ -205,8 +219,7 @@
{{.Alias}}

- - 贡献者: + 贡献者:{{.Creator.Name}}

@@ -322,8 +335,8 @@ atag[i].onclick = function () { for (i = 0; i < atag.length; i++) - atag[i].className = "ui small lable tag_lable topic"; - this.className = "ui small lable tag_lable topic tag_bg"; + atag[i].getElementsByTagName('span')[0].className = "ui small tag_lable topic omit"; + this.getElementsByTagName('span')[0].className = "ui small tag_lable topic omit tag_bg"; }; } };