@@ -12,7 +12,6 @@ | |||||
{{end}} | {{end}} | ||||
<div class="ui right metas"> | <div class="ui right metas"> | ||||
<span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span> | |||||
<span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span> | <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -22,14 +22,6 @@ | |||||
{{.NumWatches}} | {{.NumWatches}} | ||||
</a> | </a> | ||||
</div> | </div> | ||||
<div class="ui compact labeled button" tabindex="0"> | |||||
<a class="ui compact button" href="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}"> | |||||
<i class="icon fa-star{{if not $.IsStaringRepo}}-o{{end}}"></i>{{if $.IsStaringRepo}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{$.i18n.Tr "repo.star"}}{{end}} | |||||
</a> | |||||
<a class="ui basic label" href="{{.Link}}/stars"> | |||||
{{.NumStars}} | |||||
</a> | |||||
</div> | |||||
{{if .CanBeForked}} | {{if .CanBeForked}} | ||||
<div class="ui compact labeled button" tabindex="0"> | <div class="ui compact labeled button" tabindex="0"> | ||||
<a class="ui compact button {{if not $.CanSignedUserFork}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}> | <a class="ui compact button {{if not $.CanSignedUserFork}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}> | ||||
@@ -75,9 +75,6 @@ | |||||
<a :href="suburl + '/' + repo.full_name"> | <a :href="suburl + '/' + repo.full_name"> | ||||
<i :class="repoClass(repo)"></i> | <i :class="repoClass(repo)"></i> | ||||
<strong class="text truncate item-name">${repo.full_name}</strong> | <strong class="text truncate item-name">${repo.full_name}</strong> | ||||
<span class="ui right text light grey"> | |||||
${repo.stars_count} <i class="octicon octicon-star rear"></i> | |||||
</span> | |||||
</a> | </a> | ||||
</li> | </li> | ||||
<li v-if="showMoreReposLink"> | <li v-if="showMoreReposLink"> | ||||
@@ -4,27 +4,18 @@ | |||||
<div class="ui stackable grid"> | <div class="ui stackable grid"> | ||||
<div class="ui eleven wide centered column"> | <div class="ui eleven wide centered column"> | ||||
<div class="ui secondary stackable pointing menu"> | <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"}} | <i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}} | ||||
</a> | </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"> | ||||
<i class="octicon octicon-rss"></i> Recent Activity | <i class="octicon octicon-rss"></i> Recent Activity | ||||
</a> | </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> | </div> | ||||
{{if eq .TabName "activity"}} | {{if eq .TabName "activity"}} | ||||
<div class="feeds"> | <div class="feeds"> | ||||
{{template "user/dashboard/feeds" .}} | {{template "user/dashboard/feeds" .}} | ||||
</div> | </div> | ||||
{{else if eq .TabName "stars"}} | |||||
<div class="stars"> | |||||
{{template "explore/search" .}} | |||||
{{template "explore/repo_list" .}} | |||||
{{template "base/paginate" .}} | |||||
</div> | |||||
{{else}} | {{else}} | ||||
{{template "explore/search" .}} | {{template "explore/search" .}} | ||||
{{template "explore/repo_list" .}} | {{template "explore/repo_list" .}} | ||||