diff --git a/public/img/loading.png b/public/img/loading.png index c5ba3d9cd..97394c372 100644 Binary files a/public/img/loading.png and b/public/img/loading.png differ diff --git a/templates/explore/repo_left.tmpl b/templates/explore/repo_left.tmpl new file mode 100644 index 000000000..684d00dbf --- /dev/null +++ b/templates/explore/repo_left.tmpl @@ -0,0 +1,71 @@ + + +
+ +
\ No newline at end of file diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 093e54463..1b0b62553 100755 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -1,70 +1,129 @@ -

- {{.i18n.Tr "explore.repos"}} -

- + + +
{{range .Repos}}
-
- {{if .RelAvatarLink}} - - {{end}} - - {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}} - {{if .IsArchived}}{{end}} - - {{if .IsPrivate}} - {{svg "octicon-lock" 16}} - {{else if .IsFork}} - {{svg "octicon-repo-forked" 16}} - {{else if .IsMirror}} - {{svg "octicon-repo-clone" 16}} - {{else if .Owner}} - {{if .Owner.Visibility.IsPrivate}} - {{svg "octicon-lock" 16}} - {{end}} - {{end}} -
- {{if .PrimaryLanguage }} - {{ .PrimaryLanguage.Language }} + {{if .RelAvatarLink}} + + {{end}} +
+
+ + {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}} + {{if .IsArchived}}{{end}} + + {{if .IsPrivate}} + {{svg "octicon-lock" 16}} + {{else if .IsFork}} + {{svg "octicon-repo-forked" 16}} + {{else if .IsMirror}} + {{svg "octicon-repo-clone" 16}} + {{else if .Owner}} + {{if .Owner.Visibility.IsPrivate}} + {{svg "octicon-lock" 16}} + {{end}} {{end}} - {{svg "octicon-star" 16}} {{.NumStars}} - {{svg "octicon-git-branch" 16}} {{.NumForks}} + +
-
-
- {{if .DescriptionHTML}}

{{.DescriptionHTML}}

{{end}} - {{if .Topics }} -
- {{range .Topics}} - {{if ne . "" }}
{{.}}
{{end}} +
+ {{if .DescriptionHTML}}

{{.DescriptionHTML}}

{{end}} + {{if .Topics }} +
+ {{range .Topics}} + {{if ne . "" }}
{{.}}
{{end}} + {{end}} +
{{end}} -
- {{end}} -

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

+

+ {{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}} + {{if .PrimaryLanguage }} + {{ .PrimaryLanguage.Language }} + {{end}} +

+
{{else}} diff --git a/templates/explore/repo_orgtop.tmpl b/templates/explore/repo_orgtop.tmpl new file mode 100644 index 000000000..e935a3a2d --- /dev/null +++ b/templates/explore/repo_orgtop.tmpl @@ -0,0 +1,102 @@ + + + + +
+
+

这些优秀的组织正在使用:

+ + +
+
+ + + \ No newline at end of file diff --git a/templates/explore/repo_right.tmpl b/templates/explore/repo_right.tmpl index 3eebdd15c..8d3c5f1b8 100644 --- a/templates/explore/repo_right.tmpl +++ b/templates/explore/repo_right.tmpl @@ -1 +1,27 @@ - \ No newline at end of file + + + + \ No newline at end of file diff --git a/templates/explore/repos.tmpl b/templates/explore/repos.tmpl index 32a0093af..f487c9e01 100644 --- a/templates/explore/repos.tmpl +++ b/templates/explore/repos.tmpl @@ -2,16 +2,17 @@
{{template "explore/repo_search" .}} - + {{template "explore/repo_orgtop" .}} +
- {{template "explore/navbar" .}} + {{template "explore/repo_left" .}} -
+
{{template "explore/repo_list" .}} {{template "base/paginate" .}}
-
+
{{template "explore/repo_right" .}}