|
|
@@ -4,27 +4,18 @@ |
|
|
|
<div class="ui stackable grid"> |
|
|
|
<div class="ui eleven wide centered column"> |
|
|
|
<div class="ui secondary stackable pointing menu"> |
|
|
|
<a class='{{if and (ne .TabName "activity") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}"> |
|
|
|
<a class='{{if ne .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}"> |
|
|
|
<i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}} |
|
|
|
</a> |
|
|
|
<a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity"> |
|
|
|
<i class="octicon octicon-rss"></i> Recent Activity |
|
|
|
</a> |
|
|
|
<a class='{{if eq .TabName "stars"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=stars"> |
|
|
|
<i class="octicon octicon-star"></i> {{.i18n.Tr "user.starred"}} |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
|
|
|
|
{{if eq .TabName "activity"}} |
|
|
|
<div class="feeds"> |
|
|
|
{{template "user/dashboard/feeds" .}} |
|
|
|
</div> |
|
|
|
{{else if eq .TabName "stars"}} |
|
|
|
<div class="stars"> |
|
|
|
{{template "explore/search" .}} |
|
|
|
{{template "explore/repo_list" .}} |
|
|
|
{{template "base/paginate" .}} |
|
|
|
</div> |
|
|
|
{{else}} |
|
|
|
{{template "explore/search" .}} |
|
|
|
{{template "explore/repo_list" .}} |
|
|
|