Browse Source

Rip out stars

master
Gerben 6 years ago
parent
commit
47c709a4dc
4 changed files with 1 additions and 22 deletions
  1. +0
    -1
      templates/explore/repo_list.tmpl
  2. +0
    -8
      templates/repo/header.tmpl
  3. +0
    -3
      templates/user/dashboard/dashboard.tmpl
  4. +1
    -10
      templates/user/profile.tmpl

+ 0
- 1
templates/explore/repo_list.tmpl View File

@@ -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>


+ 0
- 8
templates/repo/header.tmpl View File

@@ -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}}>


+ 0
- 3
templates/user/dashboard/dashboard.tmpl View File

@@ -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">


+ 1
- 10
templates/user/profile.tmpl View File

@@ -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" .}}


Loading…
Cancel
Save