From a32bfd867dc1619f3247310d16845c8b7b854e0e Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 16 May 2021 22:18:18 +0200 Subject: Issue sidebar and misc css fixes (#15524) - Replace remaining font icons with SVG in issue sidebar - Rework issue due date display - Realign avatar in timeline - Fix font size in repo search and code explore - Consolidate active button styles - Fix loading form on arc-green - Align time tracker buttons vertically Fixes: https://github.com/go-gitea/gitea/issues/15896 --- templates/user/profile.tmpl | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'templates/user/profile.tmpl') diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 29da933493..d638fe3859 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -92,21 +92,27 @@ {{if not .DisableStars}} - {{svg "octicon-star"}} {{.i18n.Tr "user.starred"}} -
{{.Owner.NumStars}}
+ {{svg "octicon-star"}} {{.i18n.Tr "user.starred"}} + {{if .Owner.NumStars}} +
{{.Owner.NumStars}}
+ {{end}}
{{else}} - {{svg "octicon-eye"}} {{.i18n.Tr "user.watched"}} + {{svg "octicon-eye"}} {{.i18n.Tr "user.watched"}} {{end}} - {{svg "octicon-person"}} {{.i18n.Tr "user.following"}} -
{{.Owner.NumFollowing}}
+ {{svg "octicon-person"}} {{.i18n.Tr "user.following"}} + {{if .Owner.NumFollowing}} +
{{.Owner.NumFollowing}}
+ {{end}}
- {{svg "octicon-person"}} {{.i18n.Tr "user.followers"}} -
{{.Owner.NumFollowers}}
+ {{svg "octicon-person"}} {{.i18n.Tr "user.followers"}} + {{if .Owner.NumFollowers}} +
{{.Owner.NumFollowers}}
+ {{end}}
-- cgit v1.2.3