From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/shared/user/profile_big_avatar.tmpl | 129 ++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 templates/shared/user/profile_big_avatar.tmpl (limited to 'templates/shared/user/profile_big_avatar.tmpl') diff --git a/templates/shared/user/profile_big_avatar.tmpl b/templates/shared/user/profile_big_avatar.tmpl new file mode 100644 index 0000000..d3033b4 --- /dev/null +++ b/templates/shared/user/profile_big_avatar.tmpl @@ -0,0 +1,129 @@ +{{if .IsHTMX}} + {{template "base/alert" .}} +{{end}} +
+ +
+ {{if .ContextUser.FullName}}{{.ContextUser.FullName}}{{end}} + {{.ContextUser.Name}}{{if .ContextUser.Pronouns}} · {{.ContextUser.Pronouns}}{{end}} {{if .IsAdmin}} + + {{svg "octicon-gear" 18}} + + {{end}} + +
+
+
    + {{if .ContextUser.Location}} +
  • + {{svg "octicon-location"}} + {{.ContextUser.Location}} + {{if .ContextUserLocationMapURL}} + + {{svg "octicon-link-external"}} + + {{end}} +
  • + {{end}} + {{if .ShowUserEmail}} +
  • + {{svg "octicon-mail"}} + {{.ContextUser.Email}} + {{if (eq .SignedUserID .ContextUser.ID)}} + + + {{svg "octicon-unlock"}} + + + {{end}} +
  • + {{end}} + {{if .ContextUser.Website}} +
  • + {{svg "octicon-link"}} + {{.ContextUser.Website}} +
  • + {{end}} + {{if $.RenderedDescription}} +
  • +
    {{$.RenderedDescription}}
    +
  • + {{end}} + {{range .OpenIDs}} + {{if .Show}} +
  • + {{svg "fontawesome-openid"}} + {{.URI}} +
  • + {{end}} + {{end}} +
  • {{svg "octicon-calendar"}} {{ctx.Locale.Tr "user.joined_on" (DateTime "short" .ContextUser.CreatedUnix)}}
  • + {{if and .Orgs .HasOrgsVisible}} +
  • +
      + {{range .Orgs}} + {{if (or .Visibility.IsPublic (and ($.SignedUser) (or .Visibility.IsLimited (and (.HasMemberWithUserID ctx $.SignedUserID) .Visibility.IsPrivate) ($.IsAdmin))))}} +
    • + + {{ctx.AvatarUtils.Avatar .}} + +
    • + {{end}} + {{end}} +
    +
  • + {{end}} + {{if .Badges}} +
  • +
      + {{range .Badges}} +
    • + {{.Description}} +
    • + {{end}} +
    +
  • + {{end}} + {{if and .IsSigned (ne .SignedUserID .ContextUser.ID)}} + +
  • + {{if $.IsBlocked}} + + {{else}} + + {{end}} +
  • + {{end}} +
+
+
-- cgit v1.2.3