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"; }; } };