mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 10:17:37 +02:00
UserProfile Page: Render Description (#12415)
* If Description contain more that one line render it * simpler ... * only render if description exists * Fix NPE in tests * Update routers/user/profile.go Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
1 parent
6ab4d76ced
commit
2872a04f27
2 files changed
+7
-3
No files matched your search
@@ -34,10 +34,9 @@
|
||||
<a target="_blank" rel="noopener noreferrer me" href="{{.Owner.Website}}">{{.Owner.Website}}</a>
|
||||
</li>
|
||||
{{end}}
|
||||
{{if .Owner.Description}}
|
||||
{{if $.RenderedDescription}}
|
||||
<li>
|
||||
{{svg "octicon-info" 16}}
|
||||
<span>{{.Owner.Description}}</span>
|
||||
<div class="render-content markdown">{{$.RenderedDescription|Str2html}}</div>
|
||||
</li>
|
||||
{{end}}
|
||||
{{range .OpenIDs}}
|
||||
|
||||
Reference in new issue
Block a user