diff options
author | Unknwon <u@gogs.io> | 2016-07-15 21:53:43 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-15 21:53:43 +0800 |
commit | 7ca5f8f119593023809e6130db75154597c52426 (patch) | |
tree | 00b618852ec93eaba8160832f68f99ffc91382e9 /templates/repo/header.tmpl | |
parent | 194a742fb922c20db0a70100e5f2aaadf03c2acf (diff) | |
download | gitea-7ca5f8f119593023809e6130db75154597c52426.tar.gz gitea-7ca5f8f119593023809e6130db75154597c52426.zip |
models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index dfb7673d33..1293fa4310 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -10,7 +10,7 @@ <div class="divider"> / </div> <a href="{{$.RepoLink}}">{{.Name}}</a> {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}} - {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.RepoLink}}">{{SubStr .BaseRepo.RepoRelLink 1 -1}}</a></div>{{end}} + {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RepoRelLink 1 -1}}</a></div>{{end}} </div> <div class="ui right"> @@ -18,7 +18,7 @@ <a class="ui button" href="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}"> <i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}} </a> - <a class="ui basic label" href="{{.RepoLink}}/watchers"> + <a class="ui basic label" href="{{.Link}}/watchers"> {{.NumWatches}} </a> </div> @@ -26,7 +26,7 @@ <a class="ui 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="{{.RepoLink}}/stars"> + <a class="ui basic label" href="{{.Link}}/stars"> {{.NumStars}} </a> </div> @@ -35,7 +35,7 @@ <a class="ui button {{if eq .OwnerID $.SignedUserID}}poping up{{end}}" {{if not (eq .OwnerID $.SignedUserID)}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" data-position="top center" data-variation="tiny"{{end}}> <i class="icon octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}} </a> - <a class="ui basic label" href="{{.RepoLink}}/forks"> + <a class="ui basic label" href="{{.Link}}/forks"> {{.NumForks}} </a> </div> |