diff options
author | Florian Kaiser <florian.kaiser@fnkr.net> | 2016-01-31 20:41:57 +0000 |
---|---|---|
committer | Florian Kaiser <florian.kaiser@fnkr.net> | 2016-01-31 20:41:57 +0000 |
commit | 532f9fdd99eec836d1a084b4ec388eccabf2dce1 (patch) | |
tree | 3f8a28f554f6b4e2da08ed26b3f8f85f15698612 | |
parent | 8436d69eaf435ae6bb50f648c1aed3eef7b0850b (diff) | |
download | gitea-532f9fdd99eec836d1a084b4ec388eccabf2dce1.tar.gz gitea-532f9fdd99eec836d1a084b4ec388eccabf2dce1.zip |
Use icon repo-forked instead of repo-lock for private, forked repos
-rw-r--r-- | templates/explore/repo_list.tmpl | 6 | ||||
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index f8dff62869..4c2967f621 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -3,10 +3,10 @@ <div class="item"> <div class="ui header"> <a class="name" href="{{AppSubUrl}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}}</a> - {{if .IsPrivate}} - <span class="text gold"><i class="icon octicon octicon-lock"></i></span> - {{else if .IsFork}} + {{if .IsFork}} <span><i class="icon octicon octicon-repo-forked"></i></span> + {{else if .IsPrivate}} + <span class="text gold"><i class="icon octicon octicon-lock"></i></span> {{else if .IsMirror}} <span><i class="icon octicon octicon-repo-clone"></i></span> {{end}} diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 667a0e6b64..eb4d7542ca 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -29,7 +29,7 @@ {{range .Repos}} <li {{if .IsPrivate}}class="private"{{end}}> <a href="{{AppSubUrl}}/{{$.ContextUser.Name}}/{{.Name}}"> - <i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> + <i class="icon octicon octicon-{{if .IsFork}}repo-forked{{else if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i> <strong class="text truncate item-name">{{.Name}}</strong> <span class="ui right text light grey"> <i class="octicon octicon-star"></i>{{.NumStars}} |