From 99f9304588c0809d03f46a2de9a418666cbec9dc Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 20 Jan 2022 17:20:04 +0800 Subject: [PATCH] fix issue --- templates/org/home_courses.tmpl | 840 ++++++++++++++++++++-------------------- 1 file changed, 419 insertions(+), 421 deletions(-) diff --git a/templates/org/home_courses.tmpl b/templates/org/home_courses.tmpl index 33d6efd2d..3100ffcc7 100644 --- a/templates/org/home_courses.tmpl +++ b/templates/org/home_courses.tmpl @@ -1,444 +1,442 @@ -{{template "base/head" .}} -
- {{/* overflow: auto is the clearfix - this avoids the image going beyond - the container where it is supposed to stay inside. */}} - -
-
- -
-
- {{.Org.DisplayName}} -
-
- {{if .Org.Description}}

{{.Org.Description}}

{{end}} -
- -
- {{if .Org.Location}}
{{svg "octicon-location" 16}} {{.Org.Location}}
{{end}} - {{if .Org.Website}}
{{svg "octicon-link" 16}} {{.Org.Website}}
{{end}} -
-
-
-
- {{template "org/navber_course" .}} - -
- - -
- -
-
-
+ .organization-info_1000{ + background: #F5F5F6 !important; + padding-top: 30px; + margin-bottom: 0px !important; + } + .organization-info >.container { + overflow: auto; + background: #f5f5f6 !important; + padding-top: 30px; + padding-bottom: 20px; + background-size: cover; + border-radius: 5px; + border: none !important + } - 全部关键字 - - {{range .CoursesKeywords}} - {{if ne . ""}} - - {{.}} - - {{end}} - {{end}} + .organization.profile #org-avatar { + border:none !important + } + .desc { + font-size: 14px; + margin-bottom: 10px !important; + } + .item { + display: inline-block; + margin-right: 10px; + } + .item .icon { + margin-right: 5px; + } + .organization-info >.container { + padding-bottom:0px !important; + } + .tag_bg{ + background-color: #0366D6 !important; + color:#FFFFFF !important; + } + .course{ + padding:10px 0 15px !important; + } + .course_color{ + color: #FA8C16; + } + .tag_lable{ + border: 1px solid rgba(232, 232, 232, 100) ; + border-radius: 4px; + color: rgba(65, 80, 88, 100); + font-family: Microsoft Yahei; + font-size: 14px; + padding: 0.3em 0.5em; + height: 30px; + text-align: center; + margin: 0.2em; + } + .tag_lable_first{ + border: 1px solid rgba(232, 232, 232, 100) ; + border-radius: 4px; + color: rgba(65, 80, 88, 100); + font-family: Microsoft Yahei; + font-size: 14px; + padding: 0.3em 0.5em; + height: 30px; + text-align: center; + margin: 0.2em; + margin-left: none; + } + .tag_key{ + max-width:100%; + margin: 3px 3px; + display:inline-flex; + } + .bpadding{ + padding:10px 40px + } + .omit{ + overflow: hidden; white-space: nowrap; text-overflow: ellipsis; + } + .noborder{ + border: none !important; + } + + + {{template "base/head" .}} +
+ {{/* overflow: auto is the clearfix - this avoids the image going beyond + the container where it is supposed to stay inside. */}} + +
+
+ +
+
+ {{.Org.DisplayName}}
- -
- - - +
+ {{if .Org.Description}}

{{.Org.Description}}

{{end}} +
+ +
+ {{if .Org.Location}}
{{svg "octicon-location" 16}} {{.Org.Location}}
{{end}} + {{if .Org.Website}}
{{svg "octicon-link" 16}} {{.Org.Website}}
{{end}}
-
+
- - - -
+ {{template "org/navber_course" .}} + +
+ + +
+ +
+
+
-
-
-
- {{template "org/course_list" .}} - {{template "base/paginate" .}} -
- -
- -

- {{.i18n.Tr "org.selected_couse"}} - -

- -
- {{ range .tags}} - {{if eq .TagName "精选项目"}} - - {{range $i, $v := .RepoList}} - {{if gt $i 0}} -
- {{end}} -
- -
- {{.Alias}} -

- {{if ne .CreatorID 0}} - {{$.i18n.Tr "home.contributors"}} : {{.Creator.Name}} - {{if .Creator}} - {{$.i18n.Tr "home.contributors"}} {{.Creator.Name}} - {{else}} - {{$.i18n.Tr "home.contributors"}}:{{.Owner.Name}} - {{end}} -

-
-
- - {{end}} - {{end}} - {{end}} - -
- - -

- {{.i18n.Tr "org.people"}} - -

-
- {{$isMember := .IsOrganizationMember}} - {{range .Members}} - {{if or $isMember (.IsPublicMember $.Org.ID)}} - + 全部关键字 + + {{range .CoursesKeywords}} + {{if ne . ""}} + + {{.}} + {{end}} {{end}} - -
- - {{if .IsOrganizationMember}} -
- {{.i18n.Tr "org.teams"}} + + +
+
+
+ + + +
+ +
+
+
+ {{template "org/course_list" .}} + {{template "base/paginate" .}} +
+ +
+ +

+ {{.i18n.Tr "org.selected_couse"}} +

+ +
+ {{ range .tags}} + {{if eq .TagName "精选项目"}} + + {{range $i, $v := .RepoList}} + {{if gt $i 0}} +
+ {{end}} +
+ +
+ {{.Alias}} +

+ {{if ne .CreatorID 0}} + {{$.i18n.Tr "home.contributors"}} : {{.Creator.Name}} + {{else}} + {{$.i18n.Tr "home.contributors"}}:{{.Owner.Name}} + {{end}} +

+
+
+ + {{end}} + {{end}} + {{end}} +
-
- {{range .Teams}} - + + +

+ {{.i18n.Tr "org.people"}} + +

+
+ {{$isMember := .IsOrganizationMember}} + {{range .Members}} + {{if or $isMember (.IsPublicMember $.Org.ID)}} + + {{end}} {{end}} + +
- {{if .IsOrganizationOwner}} -
- {{.i18n.Tr "org.create_new_team"}} + + {{if .IsOrganizationMember}} +
+ {{.i18n.Tr "org.teams"}} + +
+ + {{if .IsOrganizationOwner}} + + {{end}} {{end}} - {{end}} +
+
-
-
- - - -{{template "base/footer" .}} - \ No newline at end of file + + + + {{template "base/footer" .}} + \ No newline at end of file