From e3d6399311dfb712619ef0aad251143e439e21c7 Mon Sep 17 00:00:00 2001 From: wangjr Date: Mon, 17 Jan 2022 16:58:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=83=E6=A0=A1=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options/locale/locale_zh-CN.ini | 4 + templates/org/course_list.tmpl | 334 +++++++++++++++++++++ templates/org/home_courses.tmpl | 479 +++++++++++++++++++++++++++++++ templates/org/member/course_members.tmpl | 0 templates/org/team/courseTeams.tmpl | 0 5 files changed, 817 insertions(+) create mode 100644 templates/org/course_list.tmpl create mode 100644 templates/org/home_courses.tmpl create mode 100644 templates/org/member/course_members.tmpl create mode 100644 templates/org/team/courseTeams.tmpl diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index d034b1722..5180eadaa 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -2050,6 +2050,7 @@ team_access_desc=项目权限 team_permission_desc=权限 team_unit_desc=允许访问项目单元 team_unit_disabled=(已禁用) +selected_couse=精选课程 form.name_reserved=组织名称 '%s' 是被保留的。 form.name_pattern_not_allowed=组织名称中不允许使用 "%s"。 @@ -2136,6 +2137,9 @@ teams.all_repositories_read_permission_desc=此团队授予读取修改所有项目的访问权限: 成员可以查看和推送至项目。 teams.all_repositories_admin_permission_desc=该团队拥有 管理 所有项目的权限:团队成员可以读取、克隆、推送以及添加其它项目协作者。 +teams.join_teams=加入该组织 + + [admin] dashboard=管理面板 users=帐户管理 diff --git a/templates/org/course_list.tmpl b/templates/org/course_list.tmpl new file mode 100644 index 000000000..a371ec4ff --- /dev/null +++ b/templates/org/course_list.tmpl @@ -0,0 +1,334 @@ + +
+ + +
+ +
+ {{range .Repos}} +
+ +
+
+ {{if .Topics }} +
+ {{range .Topics}} + {{if ne . "" }}{{.}}{{end}} + {{end}} + +
+ {{end}} + +
+ + + +
+ {{.Description}} + +
+ + + + +
+
+

+ {{$.i18n.Tr "org.repo_updated"}}{{.CreatedUnix.FormatShort}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}} + +

+ +
+
+ {{end}} +
+ +
+ +
+ + + + \ No newline at end of file diff --git a/templates/org/home_courses.tmpl b/templates/org/home_courses.tmpl new file mode 100644 index 000000000..0f9b70f67 --- /dev/null +++ b/templates/org/home_courses.tmpl @@ -0,0 +1,479 @@ + +{{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}} +
+
+
+ + +
+ + +
+ + +
+ +
+
+
+ 全部关键字 + {{range .CoursesKeywords}} + {{.}} + {{end}} +
+ + +
+
+
+ + + +
+ +
+
+
+ + {{template "org/course_list" .}} + {{template "base/paginate" .}} +
+ +
+ +

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

+ +
+ {{range $i, $v := .RecommendCourses}} + + {{if gt $i 0}} +
+ {{end}} +
+ +
+ {{.Alias}} +

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

+
+
+ + {{end}} + + +
+ + +

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

+
+ {{$isMember := .IsOrganizationMember}} + {{range .Members}} + {{if or $isMember (.IsPublicMember $.Org.ID)}} + + {{end}} + {{end}} + + +
+ + {{if .IsOrganizationMember}} +
+ {{.i18n.Tr "org.teams"}} + +
+ + {{if .IsOrganizationOwner}} + + {{end}} + {{end}} +
+
+
+ +
+
+
+ + + +{{template "base/footer" .}} + \ No newline at end of file diff --git a/templates/org/member/course_members.tmpl b/templates/org/member/course_members.tmpl new file mode 100644 index 000000000..e69de29bb diff --git a/templates/org/team/courseTeams.tmpl b/templates/org/team/courseTeams.tmpl new file mode 100644 index 000000000..e69de29bb