aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-26 02:07:15 +0200
committerGitHub <noreply@github.com>2020-06-26 03:07:15 +0300
commit0ea479561d758b2df51a4719379d32f3d096f590 (patch)
treec0975bdcace775b28e37cc4be80e5d995dd4bc1b /templates
parent6764daf7e5a5c485d991fc8030c3c97eab3d1792 (diff)
downloadgitea-0ea479561d758b2df51a4719379d32f3d096f590.tar.gz
gitea-0ea479561d758b2df51a4719379d32f3d096f590.zip
Add org avatar on top of internal repo icon (#11895)
* Add org avatar on top of internal repo icon * add color for arc-green * use wrapper div to avoid negative margins * rename class and move div * move div to icon tmpl * remove unnecessary margin for lock octicon * fix label align together with #11891 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header_icon.tmpl39
1 files changed, 21 insertions, 18 deletions
diff --git a/templates/repo/header_icon.tmpl b/templates/repo/header_icon.tmpl
index 7184734bbf..ad169c5df3 100644
--- a/templates/repo/header_icon.tmpl
+++ b/templates/repo/header_icon.tmpl
@@ -1,23 +1,26 @@
-{{if $.IsTemplate}}
- {{if $.IsPrivate}}
- {{svg "octicon-repo-template-private" 32}}
+<div class="repo-header-icon">
+ {{if $.IsTemplate}}
+ {{if $.IsPrivate}}
+ {{svg "octicon-repo-template-private" 32}}
+ {{else}}
+ {{svg "octicon-repo-template" 32}}
+ {{end}}
{{else}}
- {{svg "octicon-repo-template" 32}}
- {{end}}
-{{else}}
- {{if $.IsPrivate}}
- {{svg "octicon-lock" 32}}
- {{else if and (not $.IsMirror) (not $.IsFork) ($.Owner)}}
- {{if $.Owner.Visibility.IsPrivate}}
- {{svg "octicon-internal-repo" 32}}
+ {{if $.IsPrivate}}
+ {{svg "octicon-lock" 32}}
+ {{else if and (not $.IsMirror) (not $.IsFork) ($.Owner)}}
+ {{if $.Owner.Visibility.IsPrivate}}
+ {{svg "octicon-internal-repo" 32}}
+ <img class="ui avatar image" src="{{$.Owner.RelAvatarLink}}">
+ {{else}}
+ {{svg "octicon-repo" 32}}
+ {{end}}
+ {{else if $.IsMirror}}
+ {{svg "octicon-repo-clone" 32}}
+ {{else if $.IsFork}}
+ {{svg "octicon-repo-forked" 32}}
{{else}}
{{svg "octicon-repo" 32}}
{{end}}
- {{else if $.IsMirror}}
- {{svg "octicon-repo-clone" 32}}
- {{else if $.IsFork}}
- {{svg "octicon-repo-forked" 32}}
- {{else}}
- {{svg "octicon-repo" 32}}
{{end}}
-{{end}}
+</div>