[Fixes] User Image not displaying in top right section
This commit is contained in:
parent
21c57c23c0
commit
5c2e978b4a
2 changed files with 8 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ frappe.avatar = function(user, css_class, title) {
|
|||
return repl('<span class="avatar %(css_class)s" title="%(title)s">\
|
||||
<span class="avatar-frame" style="background-image: url(%(image)s)"\
|
||||
title="%(title)s"></span></span>', {
|
||||
image: image,
|
||||
image: user_info.image,
|
||||
title: title,
|
||||
abbr: user_info.abbr,
|
||||
css_class: css_class
|
||||
|
|
|
|||
|
|
@ -10,7 +10,13 @@
|
|||
<div class="your-account-info">
|
||||
<div class="avatar avatar-large">
|
||||
<a href="/me">
|
||||
<img class="user-image" src="{{ user_image }}" /></a>
|
||||
{% if user_image -%}
|
||||
<img class="user-image" src="{{ user_image }}" /></a>
|
||||
{% else %}
|
||||
{% block script %}
|
||||
<script> $('.avatar-large').append($(frappe.avatar()).find('.standard-image')) </script>
|
||||
{% endblock %}
|
||||
{% endif -%}
|
||||
</div>
|
||||
<div>
|
||||
<h4>{{ fullname }}</h4>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue