| @@ -386,6 +386,7 @@ target_branch_not_exist = Target branch does not exist. | |||||
| change_avatar = Change your avatar… | change_avatar = Change your avatar… | ||||
| join_on = Joined on | join_on = Joined on | ||||
| repositories = Repositories | repositories = Repositories | ||||
| datasets = Datasets | |||||
| activity = Public Activity | activity = Public Activity | ||||
| followers = Followers | followers = Followers | ||||
| starred = Starred Repositories | starred = Starred Repositories | ||||
| @@ -385,6 +385,7 @@ target_branch_not_exist=目标分支不存在。 | |||||
| change_avatar=修改头像 | change_avatar=修改头像 | ||||
| join_on=加入于 | join_on=加入于 | ||||
| repositories=仓库列表 | repositories=仓库列表 | ||||
| datasets=数据集 | |||||
| activity=公开活动 | activity=公开活动 | ||||
| followers=关注者 | followers=关注者 | ||||
| starred=已点赞 | starred=已点赞 | ||||
| @@ -0,0 +1,41 @@ | |||||
| <div class="ui repository list"> | |||||
| {{range .Repos}} | |||||
| <div class="item"> | |||||
| <div class="ui header"> | |||||
| {{if .RelAvatarLink}} | |||||
| <img class="ui avatar image" src="{{.RelAvatarLink}}"> | |||||
| {{end}} | |||||
| <a class="name" href="{{.Link}}"> | |||||
| {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}} | |||||
| {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}} | |||||
| </a> | |||||
| {{if .IsPrivate}} | |||||
| <span class="middle text gold">{{svg "octicon-lock" 16}}</span> | |||||
| {{else if .IsFork}} | |||||
| <span class="middle">{{svg "octicon-repo-forked" 16}}</span> | |||||
| {{end}} | |||||
| <div class="ui right metas"> | |||||
| {{if .PrimaryLanguage }} | |||||
| <span class="text grey"><i class="color-icon" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{ .PrimaryLanguage.Language }}</span> | |||||
| {{end}} | |||||
| <span class="text grey">{{svg "octicon-flame" 16}} {{.NumStars}}</span> | |||||
| </div> | |||||
| </div> | |||||
| <div class="description"> | |||||
| {{if .DescriptionHTML}}<p>{{.DescriptionHTML}}</p>{{end}} | |||||
| {{if .Topics }} | |||||
| <div class="ui tags"> | |||||
| {{range .Topics}} | |||||
| {{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui small label topic">{{.}}</div></a>{{end}} | |||||
| {{end}} | |||||
| </div> | |||||
| {{end}} | |||||
| <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p> | |||||
| </div> | |||||
| </div> | |||||
| {{else}} | |||||
| <div> | |||||
| {{$.i18n.Tr "explore.repo_no_results"}} | |||||
| </div> | |||||
| {{end}} | |||||
| </div> | |||||
| @@ -1,3 +1,3 @@ | |||||
| {{template "base/head" .}} | {{template "base/head" .}} | ||||
| index.tmpl | |||||
| {{template "datasets/dataset_list" .}} | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| @@ -83,9 +83,12 @@ | |||||
| </div> | </div> | ||||
| <div class="ui eleven wide column"> | <div class="ui eleven wide column"> | ||||
| <div class="ui secondary stackable pointing menu"> | <div class="ui secondary stackable pointing menu"> | ||||
| <a class='{{if and (ne .TabName "activity") (ne .TabName "following") (ne .TabName "followers") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}"> | |||||
| <a class='{{if and (ne .TabName "datasets") (ne .TabName "activity") (ne .TabName "following") (ne .TabName "followers") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}"> | |||||
| {{svg "octicon-repo" 16}} {{.i18n.Tr "user.repositories"}} | {{svg "octicon-repo" 16}} {{.i18n.Tr "user.repositories"}} | ||||
| </a> | </a> | ||||
| <a class='{{if eq .TabName "datasets"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=datasets"> | |||||
| {{svg "octicon-file-submodule" 16}} {{.i18n.Tr "user.datasets"}} | |||||
| </a> | |||||
| <a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity"> | <a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity"> | ||||
| {{svg "octicon-rss" 16}} {{.i18n.Tr "user.activity"}} | {{svg "octicon-rss" 16}} {{.i18n.Tr "user.activity"}} | ||||
| </a> | </a> | ||||
| @@ -127,6 +130,8 @@ | |||||
| {{template "repo/user_cards" .}} | {{template "repo/user_cards" .}} | ||||
| {{else if eq .TabName "followers"}} | {{else if eq .TabName "followers"}} | ||||
| {{template "repo/user_cards" .}} | {{template "repo/user_cards" .}} | ||||
| {{else if eq .TabName "datasets"}} | |||||
| {{template "datasets/dataset_list" .}} | |||||
| {{else}} | {{else}} | ||||
| {{template "explore/repo_search" .}} | {{template "explore/repo_search" .}} | ||||
| {{template "explore/repo_list" .}} | {{template "explore/repo_list" .}} | ||||