bug in url field on user profile
This commit is contained in:
@@ -45,10 +45,10 @@
|
|||||||
<div class="text-lg font-bold">{{ fullname }}</div>
|
<div class="text-lg font-bold">{{ fullname }}</div>
|
||||||
{{ if isset(description) }}<div>{{ description }}</div>{{ end }}
|
{{ if isset(description) }}<div>{{ description }}</div>{{ end }}
|
||||||
{{ if isset(email) }}<div><strong>E-mail:</strong> {{ email }}</div>{{ end }}
|
{{ if isset(email) }}<div><strong>E-mail:</strong> {{ email }}</div>{{ end }}
|
||||||
{{ if isset(url) }}
|
{{ if isset(user_url) }}
|
||||||
<div>
|
<div>
|
||||||
<strong>URL: </strong>
|
<strong>URL: </strong>
|
||||||
<a href="{{ url }}" target="_blank" class="text-blue-700 hover:text-blue-900">{{ url }}</a>
|
<a href="{{ user_url }}" target="_blank" class="text-blue-700 hover:text-blue-900">{{ user_url }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -371,8 +371,8 @@ func ShowProfile(ctxt ui.AmContext) (string, any, error) {
|
|||||||
if !ci.PrivateEmail && ci.Email != nil {
|
if !ci.PrivateEmail && ci.Email != nil {
|
||||||
ctxt.VarMap().Set("email", *ci.Email)
|
ctxt.VarMap().Set("email", *ci.Email)
|
||||||
}
|
}
|
||||||
if ci.URL != nil {
|
if ci.URL != nil && *ci.URL != "" {
|
||||||
ctxt.VarMap().Set("url", *ci.URL)
|
ctxt.VarMap().Set("user_url", *ci.URL)
|
||||||
}
|
}
|
||||||
if ci.Company != nil {
|
if ci.Company != nil {
|
||||||
ctxt.VarMap().Set("company", *ci.Company)
|
ctxt.VarMap().Set("company", *ci.Company)
|
||||||
|
|||||||
Reference in New Issue
Block a user