summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2022-08-17 19:25:25 -0400
committerGitHub <noreply@github.com>2022-08-18 02:25:25 +0300
commitd8e6c9912594dfa03d55a021d538b6b0bd0561ee (patch)
treebebedc28da71c6b284ea8a80b70cccf4d58d13d4 /templates/user
parent208b4ee417c528f11583bb84f3f3481bfad12ac7 (diff)
downloadgitea-d8e6c9912594dfa03d55a021d538b6b0bd0561ee.tar.gz
gitea-d8e6c9912594dfa03d55a021d538b6b0bd0561ee.zip
Add badge capabilities to users (#20607)
Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/profile.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 947c8fcebe..2a973c2d5b 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -69,6 +69,17 @@
</ul>
</li>
{{end}}
+ {{if .Badges}}
+ <li>
+ <ul class="user-badges">
+ {{range .Badges}}
+ <li>
+ <img width="64" height="64" src="{{.ImageURL}}" alt="{{.Description}}" data-content="{{.Description}}" class="tooltip"/>
+ </li>
+ {{end}}
+ </ul>
+ </li>
+ {{end}}
{{if and .IsSigned (ne .SignedUserName .Owner.Name)}}
<li class="follow">
{{if $.IsFollowing}}