diff options
author | Brecht Van Lommel <brecht@blender.org> | 2023-01-30 09:16:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 16:16:12 +0800 |
commit | be315c76fba151bae3f02f18ba0213c8b1c4327f (patch) | |
tree | d17faef9f07ad2cbc446b2f0168bf5b33a794df7 | |
parent | 203681d084dc2b85a7e66170dab93d4e843066d0 (diff) | |
download | gitea-be315c76fba151bae3f02f18ba0213c8b1c4327f.tar.gz gitea-be315c76fba151bae3f02f18ba0213c8b1c4327f.zip |
Fix poor alignment of organization description on organization home page (#22656)
Don't generate nested `<p>`, use `<div>` like description on the user
profile page.
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r-- | templates/org/home.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 6474204493..eea5a076db 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -13,7 +13,7 @@ {{if .Org.Visibility.IsPrivate}}<div class="ui large basic horizontal label">{{.locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} </span> </div> - {{if $.RenderedDescription}}<p class="render-content markup">{{$.RenderedDescription|Str2html}}</p>{{end}} + {{if $.RenderedDescription}}<div class="render-content markup">{{$.RenderedDescription|Str2html}}</div>{{end}} <div class="text grey meta"> {{if .Org.Location}}<div class="item">{{svg "octicon-location"}} <span>{{.Org.Location}}</span></div>{{end}} {{if .Org.Website}}<div class="item">{{svg "octicon-link"}} <a target="_blank" rel="noopener noreferrer me" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}} |